linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rename a btrfs filesystem?
@ 2011-04-30  2:24 Evert Vorster
  2011-04-30  5:33 ` Fajar A. Nugraha
  0 siblings, 1 reply; 2+ messages in thread
From: Evert Vorster @ 2011-04-30  2:24 UTC (permalink / raw)
  To: linux-btrfs

Hi there.

Just a quick question: How do I rename an existing btrfs filesystem
without destroying all the subvolumes on it?

>From mkfs.btrfs it says -L sets the initial filesystem label.

With ext2, 3 and 4 the filesystem label can be changed with tune2fs.
Does similar functionality exist in btrfs?

Thanks for any response.
-- 
-Evert-

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Rename a btrfs filesystem?
  2011-04-30  2:24 Rename a btrfs filesystem? Evert Vorster
@ 2011-04-30  5:33 ` Fajar A. Nugraha
  0 siblings, 0 replies; 2+ messages in thread
From: Fajar A. Nugraha @ 2011-04-30  5:33 UTC (permalink / raw)
  To: linux-btrfs

On Sat, Apr 30, 2011 at 9:24 AM, Evert Vorster <evorster@gmail.com> wrote:
> Hi there.
>
> Just a quick question: How do I rename an existing btrfs filesystem
> without destroying all the subvolumes on it?
>
> From mkfs.btrfs it says -L sets the initial filesystem label.
>
> With ext2, 3 and 4 the filesystem label can be changed with tune2fs.
> Does similar functionality exist in btrfs?

There's a patch for btrfsprogs which introduce a new command: btrfslabel
https://patchwork.kernel.org/patch/70701/

You might need to make some changes to merge it with current version,
but the userland-only patch works great for changing unmounted btrfs
filesystem. It works even without the kernel-side patch.

-- 
Fajar

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-30  5:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-30  2:24 Rename a btrfs filesystem? Evert Vorster
2011-04-30  5:33 ` Fajar A. Nugraha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).