* [PATCH] btrfs-progs: kill check for /'s in labels
@ 2009-01-22 19:25 Josef Bacik
2009-01-22 20:01 ` Josef Bacik
0 siblings, 1 reply; 2+ messages in thread
From: Josef Bacik @ 2009-01-22 19:25 UTC (permalink / raw)
To: linux-btrfs; +Cc: Josef Bacik
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>
---
mkfs.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/mkfs.c b/mkfs.c
index d664254..5ed44cc 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -302,12 +302,6 @@ static char *parse_label(char *input)
BTRFS_LABEL_SIZE);
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);
}
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs-progs: kill check for /'s in labels
2009-01-22 19:25 [PATCH] btrfs-progs: kill check for /'s in labels Josef Bacik
@ 2009-01-22 20:01 ` Josef Bacik
0 siblings, 0 replies; 2+ messages in thread
From: Josef Bacik @ 2009-01-22 20:01 UTC (permalink / raw)
To: Josef Bacik; +Cc: linux-btrfs
On Thu, Jan 22, 2009 at 02:25:44PM -0500, Josef Bacik wrote:
> 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,
>
Arrgh sorry, forgot to kill the int i part. Here's the updated patch, thanks,
Josef
diff --git a/mkfs.c b/mkfs.c
index d664254..138bcc9 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -294,7 +294,6 @@ static u64 parse_profile(char *s)
static char *parse_label(char *input)
{
- int i;
int len = strlen(input);
if (len > BTRFS_LABEL_SIZE) {
@@ -302,12 +301,6 @@ static char *parse_label(char *input)
BTRFS_LABEL_SIZE);
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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-22 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22 19:25 [PATCH] btrfs-progs: kill check for /'s in labels Josef Bacik
2009-01-22 20:01 ` Josef Bacik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox