Skip to contentSkip to conversation

Set/change label

DISCUSSION Felix Blanke 2 participants 4 messages Aug 24, 2010 1 message not in the archive Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

is there any way to set/change the label after the filesystem has been created?

Best regards,
Felix

#1 lore raw
Quoted 3 lines · Felix Blanke

Hi,

is there any way to set/change the label after the filesystem has been

created?

There was a patch to do that. But AFAICT this patch was never merged. If you are interested look at

[Repost] btrfslabel - kernel space

https://kerneltrap.org/mailarchive/linux-btrfs/2010/1/4/6683133/thread

IIRC the user space utility, in case of a *unmounted* filesystem, is able to change a LABEL without patching the kernel.

Goffredo

Quoted 9 lines

Best regards,
Felix
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <[email protected]>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512
#3 lore raw
In reply to a message not in the archive
Quoted 5 lines · you (Felix Blanke)

Hi,

thanks for your reply.

You mentioned that it should be possible to change the label of an

unmounted

Quoted 1 line

filesystem, but you didn't mentioned how. :( I can't find a command that

does that.

True, I have to admit that my reply was not very clear.
The patches of which I posted the link, contains the command btrfslabel which is able to change a label.
Unfortunately the patches were never accepted.

If you are interested I can update and repost the patches.

Regards
G.Baroncelli

Quoted 24 lines

Regards,
Felix

Quoted 19 lines · Goffredo Baroncelli

Date: Tue, 24 Aug 2010 18:39:38 +0200
From: Goffredo Baroncelli <[email protected]>
To: [email protected]
Subject: Re: Set/change label

Quoted 3 lines · Felix Blanke

Hi,

is there any way to set/change the label after the filesystem has been

created?

There was a patch to do that. But AFAICT this patch was never merged. If you are interested look at

[Repost] btrfslabel - kernel space

https://kerneltrap.org/mailarchive/linux-btrfs/2010/1/4/6683133/thread

IIRC the user space utility, in case of a *unmounted* filesystem, is able

to

Quoted 10 lines
Quoted 10 lines

change a LABEL without patching the kernel.

Goffredo

Quoted 6 lines

Best regards,
Felix
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

in

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) 

<[email protected]>

Quoted 7 lines
Quoted 5 lines

Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512 --
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

---end quoted text---

Signature · 2 lines
gpg key@ keyserver.linux.it: Goffredo Baroncelli(ghigo) <kreijackATinwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512
#4 lore raw

Hi,

ah ok :) I thought there is a way without the patch to change the label of unmounted fs.

I am interested! If it is not to mutch work for you it would be great to have that feature.
It's kind of strange that it is not possible to do that with the default btrfs utilities, because it's such an elementary thing.

Thanks again for your help!

Regards,
Felix

Quoted 70 lines · Goffredo Baroncelli

Date: Tue, 24 Aug 2010 23:35:23 +0200
From: Goffredo Baroncelli <[email protected]>
To: Felix Blanke <[email protected]>
Cc: [email protected]
Subject: Re: Set/change label

Quoted 5 lines · you (Felix Blanke)

Hi,

thanks for your reply.

You mentioned that it should be possible to change the label of an

unmounted

Quoted 1 line

filesystem, but you didn't mentioned how. :( I can't find a command that

does that.

True, I have to admit that my reply was not very clear.
The patches of which I posted the link, contains the command btrfslabel which is able to change a label.
Unfortunately the patches were never accepted.

If you are interested I can update and repost the patches.

Regards
G.Baroncelli

Quoted 24 lines

Regards,
Felix

Quoted 19 lines · Goffredo Baroncelli

Date: Tue, 24 Aug 2010 18:39:38 +0200
From: Goffredo Baroncelli <[email protected]>
To: [email protected]
Subject: Re: Set/change label

Quoted 3 lines · Felix Blanke

Hi,

is there any way to set/change the label after the filesystem has been

created?

There was a patch to do that. But AFAICT this patch was never merged. If you are interested look at

[Repost] btrfslabel - kernel space

https://kerneltrap.org/mailarchive/linux-btrfs/2010/1/4/6683133/thread

IIRC the user space utility, in case of a *unmounted* filesystem, is able

to

Quoted 10 lines
Quoted 10 lines

change a LABEL without patching the kernel.

Goffredo

Quoted 6 lines

Best regards,
Felix
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

in

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) 
Quoted 13 lines

<[email protected]>

Quoted 7 lines
Quoted 5 lines

Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512 --
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

---end quoted text---

Signature · 2 lines
gpg key@ keyserver.linux.it: Goffredo Baroncelli(ghigo) <kreijackATinwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

---end quoted text---