diff options
author | Josef Bacik <jbacik@redhat.com> | 2009-01-22 14:25:44 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-01-25 23:38:31 +0100 |
commit | 79e0e445fc2365e47fc7f060d5a4445d37e184b8 (patch) | |
tree | f44ab855a6b8839e0781c855f585e9221daf0c46 /mkfs.c | |
parent | bbb9e4b419486dc6eb8dab3cb3ad446c1f5770d3 (diff) |
btrfs-progs: kill check for /'s in labels
This patch kills a check in mkfs's label stuff which doesn't allow labels that
have /'s in them. This causes problems for Anaconda which try to label volumes
with their mountpoints. Thanks,
Signed-off-by: Josef Bacik <jbacik@redhat.com>
Diffstat (limited to 'mkfs.c')
-rw-r--r-- | mkfs.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -357,7 +357,6 @@ static u64 parse_profile(char *s) static char *parse_label(char *input) { - int i; int len = strlen(input); if (len >= BTRFS_LABEL_SIZE) { @@ -365,12 +364,6 @@ static char *parse_label(char *input) BTRFS_LABEL_SIZE - 1); exit(1); } - for (i = 0; i < len; i++) { - if (input[i] == '/' || input[i] == '\\') { - fprintf(stderr, "invalid label %s\n", input); - exit(1); - } - } return strdup(input); } |