[PATCH] make "btrfs filesystem label" command actually work

2011-06-01 Thread Fajar A. Nugraha
This simple patch makes "btrfs filesystem label" command actually work. On tmp branch, commit d1dc6a9, "btrfs filesystem label" functionality was introduced. However the commit lacks one component that lets "btrfs" accept "f

Re: "btrfs filesystem label" command

2011-05-12 Thread Goffredo Baroncelli
[*] http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-progs-unstable.git;a=commit;h=d1dc6a9cff7e2fe4f335ca783a4b033457b3e184 > > -BJ > > > From: "Goffredo Baroncelli" To: "BJ Quinn" > Cc: linux-btrfs@vger.kernel.org Sent: Tuesday, May 10, > 201

Re: "btrfs filesystem label" command

2011-05-10 Thread Goffredo Baroncelli
that this may help you Regards G.Baroncelli On 05/09/2011 11:36 PM, BJ Quinn wrote: > Hi, > > Sorry to ask what's probably a painfully obvious question, but I'd like to > use your btrfs filesystem label command. For the life of me, I can't quite > figure out w

R: Re: [PATCH 5/5][REPOST][BTRFS-PROGS] Add the "btrfs filesystem label" command

2010-12-05 Thread Goffredo Baroncelli
>Da: jeromepou...@gmail.com >Data: 06/12/2010 1.48 >A: "kreij...@inwind.it" >Cc: "chris.ma...@oracle.com", "linux-bt...@vger. kernel.org", "Felix Blanke" >Ogg: Re: [PATCH 5/5][REPOST][BTRFS-PROGS] Add the "btrfs filesystem label&quo

Re: [PATCH 5/5][REPOST][BTRFS-PROGS] Add the "btrfs filesystem label" command

2010-12-05 Thread Jérôme Poulin
On 2010-12-05, at 12:47, Goffredo Baroncelli wrote: > Hi all, > > this patch adds the command "btrfs filesystem label" to change (or show) the > label of a filesystem. > This patch is a subset of the one written previously by Morey Roof. I > included the user space part only. So it is possible on

[PATCH 5/5][REPOST][BTRFS-PROGS] Add the "btrfs filesystem label" command

2010-12-05 Thread Goffredo Baroncelli
Hi all, this patch adds the command "btrfs filesystem label" to change (or show) the label of a filesystem. This patch is a subset of the one written previously by Morey Roof. I included the user space part only. So it is possible only to change/show a label of a *single device* and *unounted*

Re: [PATCH] Add the "btrfs filesystem label" command

2010-09-16 Thread Goffredo Baroncelli
On Thursday, 16 September, 2010, Mike Fedyk wrote: > On Mon, Sep 13, 2010 at 12:24 PM, Goffredo Baroncelli > wrote: [...] > > + > > + if(ret != 0) > > + { > > + fprintf(stderr, "FATAL: the filesystem has to be > > unmounted\n"); > > + return -2; > > + }

Re: [PATCH] Add the "btrfs filesystem label" command

2010-09-15 Thread cwillu
On Wed, Sep 15, 2010 at 7:10 PM, Chris Ball wrote: > Hi, > >   > How can one char equal two chars? >   > >   > input[i] == '\\' > > If the first char is the C escape sequence for string literals.  :) Why are those characters forbidden in a label? -- To unsubscribe from this list: send the line "

Re: [PATCH] Add the "btrfs filesystem label" command

2010-09-15 Thread Chris Ball
Hi, > How can one char equal two chars? > > input[i] == '\\' If the first char is the C escape sequence for string literals. :) - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body

Re: [PATCH] Add the "btrfs filesystem label" command

2010-09-15 Thread Mike Fedyk
On Mon, Sep 13, 2010 at 12:24 PM, Goffredo Baroncelli wrote: > +int get_label(char *btrfs_dev) > +{ > + > +       int ret; > +       ret = check_mounted(btrfs_dev); > +       if (ret < 0) > +       { > +              fprintf(stderr, "FATAL: error checking %s mount status\n", > btrfs_dev); > +    

Re: [PATCH] Add the "btrfs filesystem label" command

2010-09-15 Thread Felix Blanke
Worked like it should for me :) Thanks a lot for your work. I hope this patch will be merged soon. Like G.Baroncelli says: It's such an essential feature. Regards, Felix Goffredo Baroncelli schrieb: Hi all, this patch adds the command "btrfs filesystem label" to change (or show) the label

[PATCH] Add the "btrfs filesystem label" command

2010-09-13 Thread Goffredo Baroncelli
Hi all, this patch adds the command "btrfs filesystem label" to change (or show) the label of a filesystem. This patch is a subset of the one written previously by Morey Roof. I included the user space part only. So it is possible only to change/show a label of a *single device* and *unounted*