path: root/utils.h
diff options
authorJeff Liu <>2013-01-30 16:32:47 +0800
committerDavid Sterba <>2013-02-26 19:27:22 +0100
commitefbbbc88cbee3f28c6b4a4c34623e13dc1e2e700 (patch)
tree39ac9e2f53a6e9953b0e9d7e6f04045beaac9583 /utils.h
parent63a44771a4a7ea1b4a36687bf8fe11f3bd54e87e (diff)
btrfs-progs: move btrfslabel.[c|h] stuff to utils.[c|h]
Clean btrfslabel.[c|h] out of the source tree and move those related functions to utils.[c|h]. CC: Gene Czarcinski <> Signed-off-by: Jie Liu <> Signed-off-by: David Sterba <>
Diffstat (limited to 'utils.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index cadb1cb9..0b681ed3 100644
--- a/utils.h
+++ b/utils.h
@@ -52,6 +52,8 @@ int get_device_info(int fd, u64 devid,
struct btrfs_ioctl_dev_info_args *di_args);
int get_fs_info(int fd, char *path, struct btrfs_ioctl_fs_info_args *fi_args,
struct btrfs_ioctl_dev_info_args **di_ret);
+int get_label(const char *btrfs_dev);
+int set_label(const char *btrfs_dev, const char *label);
char *__strncpy__null(char *dest, const char *src, size_t n);
int is_swap_device(const char *file);