btrfsprogs/0186-btrfs-progs-document-devid-parameter-for-resize.patch
David Sterba b3ba9dc0aa - add btrfs-debug-tree to initrd
- adjust fs size to correct size (bnc#744593)
- man page documentation updates
- do not package obsolete utilities
- mkfs: store correct size of device in superblock (bnc#730103)
- updated restriper/balance commands to match kernel version
- device scanning fixes for dm and multipath (bnc#749540)

OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=121
2012-04-06 11:43:24 +00:00

54 lines
2.1 KiB
Diff

From a8d78caea3bd1983181806f5110288f23c776005 Mon Sep 17 00:00:00 2001
From: David Sterba <dsterba@suse.cz>
Date: Mon, 26 Mar 2012 18:00:58 +0200
Subject: [PATCH 03/10] btrfs-progs: document devid parameter for resize
Based on patch from Goffredo Baroncelli.
Signed-off-by: David Sterba <dsterba@suse.cz>
---
btrfs_cmds.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/btrfs_cmds.c b/btrfs_cmds.c
index 26a0700..0a741f0 100644
--- a/btrfs_cmds.c
+++ b/btrfs_cmds.c
@@ -804,10 +804,9 @@ int do_scan(int argc, char **argv)
/**** man: btrfs filesystem resize
*
- * \Bbtrfs\b \Bfilesystem resize\b\I [+/\-]<size>[gkm]|max <path>\i
+ * \Bbtrfs\b \Bfilesystem resize\b\I [<devid>:][+/\-]<size>[gkm]|max <path>\i
*
- * Resize the file system. If 'max' is passed, the filesystem
- * will occupe all available space on the device.
+ * Resize the file system.
*
* Resize a filesystem identified by \I<path>\i.
* The \I<size>\i parameter specifies the new size of the filesystem.
@@ -818,13 +817,17 @@ int do_scan(int argc, char **argv)
* the units designators: 'K', 'M', or 'G', kilobytes, megabytes, or gigabytes,
* respectively.
*
- * If 'max' is passed, the filesystem will occupy all available space on the
+ * If 'max' is specified, the filesystem will occupy all available space on the
* volume(s).
*
- * The \Bresize\b command \Bdoes not\b manipulate the size of underlying
- * partition. If you wish to enlarge/reduce a filesystem, you must make sure
+ * The \Bresize\b command \Bdoes not\b manipulate the size of the underlying
+ * partition. If you wish to enlarge/reduce a filesystem, you have to make sure
* you can expand the partition before enlarging the filesystem and shrink the
* partition after reducing the size of the filesystem.
+ *
+ * When the filesystem consists of multiple devices, it is possible to specify
+ * which one should be resized via the <devid> parameter. To know the <devid>
+ * of a device use the command \fBbtrfs filesystem show\fR.
****/
int do_resize(int argc, char **argv)
--
1.7.6.233.gd79bc