- add scrub subcommand - scan /proc/partitions by default (or use --all-devices for all) - mkfs fixes and improvements - documentation fixes - update from git: - add btrfs-select-super utility - add btrfs-label utility - allow mixed data+metadata (option --mixed) - allow populating new filesystem with files (option --rootdir) - allow discard support in mkfs - lzo support - deprecate 'btrfsctl' 'btrfs-vol' 'btrfs-show' - other bugfixes and documentation improvements OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=104
59 lines
1.6 KiB
Diff
59 lines
1.6 KiB
Diff
From 55e0c7a250d6573fc9f8bdc561e73e1d02b3f3dc Mon Sep 17 00:00:00 2001
|
|
From: "Fajar A. Nugraha" <list@fajar.net>
|
|
Date: Thu, 2 Jun 2011 09:54:27 +0700
|
|
Subject: [PATCH 16/28] make "btrfs filesystem label" command actually work
|
|
|
|
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 "filesystem label" command.
|
|
Test case:
|
|
|
|
/dev/loop0
|
|
|
|
WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
|
|
WARNING! - see http://btrfs.wiki.kernel.org before using
|
|
|
|
fs created label old on /dev/loop0
|
|
nodesize 4096 leafsize 4096 sectorsize 4096 size 1.00GB
|
|
Btrfs Btrfs v0.19
|
|
|
|
old
|
|
|
|
new
|
|
|
|
FATAL: the filesystem has to be unmounted
|
|
|
|
new
|
|
|
|
Not sure if you need if you need a signoff for something as trivial as
|
|
this, but here it is just in case.
|
|
|
|
Signed-off-by: Fajar A. Nugraha <list@fajar.net>
|
|
Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
|
|
---
|
|
btrfs.c | 6 ++++++
|
|
1 files changed, 6 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/btrfs.c b/btrfs.c
|
|
index 9cc2665..ff84260 100644
|
|
--- a/btrfs.c
|
|
+++ b/btrfs.c
|
|
@@ -119,6 +119,12 @@ static struct Command commands[] = {
|
|
"Balance the chunks across the device.",
|
|
NULL
|
|
},
|
|
+ { do_change_label, -1,
|
|
+ "filesystem label", "<device> [<newlabel>]\n"
|
|
+ "With one argument, get the label of filesystem on <device>.\n"
|
|
+ "If <newlabel> is passed, set the filesystem label to <newlabel>.\n"
|
|
+ "The filesystem must be unmounted.\n"
|
|
+ },
|
|
{ do_scan, 999,
|
|
"device scan", "[<device>...]\n"
|
|
"Scan all device for or the passed device for a btrfs\n"
|
|
--
|
|
1.7.5.2.353.g5df3e
|
|
|