linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Fajar A. Nugraha" <list@fajar.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Rename a btrfs filesystem?
Date: Sat, 30 Apr 2011 12:33:55 +0700	[thread overview]
Message-ID: <BANLkTim0OaNdYf2sb+UwzxCLTss6aW_bHg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikxuU4z-LXUcQptuaLZSZvUjmQSsg@mail.gmail.com>

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

      reply	other threads:[~2011-04-30  5:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-30  2:24 Rename a btrfs filesystem? Evert Vorster
2011-04-30  5:33 ` Fajar A. Nugraha [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTim0OaNdYf2sb+UwzxCLTss6aW_bHg@mail.gmail.com \
    --to=list@fajar.net \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).