summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorJeff Liu <jeff.liu@oracle.com>2013-01-30 16:32:43 +0800
committerDavid Sterba <dsterba@suse.cz>2013-02-26 19:24:14 +0100
commit63a44771a4a7ea1b4a36687bf8fe11f3bd54e87e (patch)
tree8c06bfa636e389dcfdf50436a1f49d068220a607 /utils.h
parentc51b711fff2cfe5b67405731c17c8ffb694e1ddb (diff)
btrfs-progs: refactor check_label()
Refactor check_label(). - Make it be static at first, this is a preparation step since we'll remove btrfslabel.[c|h] and move those functions from there to utils.[c|h], we can do pre-checking against the input label string with it. - Fix the label length check up from BTRFS_LABEL_SIZE to BTRFS_LABEL_SIZE - 1. - Kill the check of label contains an invalid character, see below commits for detail: 79e0e445fc2365e47fc7f060d5a4445d37e184b8 btrfs-progs: kill check for /'s in labels. Signed-off-by: Jie Liu <jeff.liu@oracle.com> CC: David Sterba <dsterba@suse.cz> CC: Gene Czarcinski <gene@czarc.net>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 60a0fea9..cadb1cb9 100644
--- a/utils.h
+++ b/utils.h
@@ -44,7 +44,6 @@ int check_mounted_where(int fd, const char *file, char *where, int size,
int btrfs_device_already_in_root(struct btrfs_root *root, int fd,
int super_offset);
char *pretty_sizes(u64 size);
-int check_label(char *input);
int get_mountpt(char *dev, char *mntpt, size_t size);
int btrfs_scan_block_devices(int run_ioctl);
u64 parse_size(char *s);