diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-11-12 13:41:42 +0000 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-31 08:22:02 -0800 |
commit | 457b1286dd9976efbfec25bb286ddc8cec410aa1 (patch) | |
tree | 517affec64c49ccdb548beba5e4db3bb03923bbf /utils.h | |
parent | 67d3c3c0d3505377e6468849b086aefc69ae5411 (diff) |
Btrfs-progs: let get_label return the label instead of printing it
get_label prints the label at the moment. Change this so that
the label is returned and printing is done by the caller.
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ int open_file_or_dir(const char *fname, DIR **dirstream); void close_file_or_dir(int fd, DIR *dirstream); int get_fs_info(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 get_label(const char *btrfs_dev, char *label); int set_label(const char *btrfs_dev, const char *label); char *__strncpy__null(char *dest, const char *src, size_t n); |