24468f395f
- Make requirement on libattr-devel explicit (forwarded request 179218 from jengelh) OBS-URL: https://build.opensuse.org/request/show/179277 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/btrfsprogs?expand=0&rev=29
56 lines
1.6 KiB
Diff
56 lines
1.6 KiB
Diff
From 13a29ecb84a41af67c1d96c2c5f2848738a2f570 Mon Sep 17 00:00:00 2001
|
|
From: David Sterba <dsterba@suse.cz>
|
|
Date: Tue, 27 Mar 2012 00:02:35 +0200
|
|
Subject: [PATCH 07/10] btrfs-progs: document fi df
|
|
|
|
Signed-off-by: David Sterba <dsterba@suse.cz>
|
|
---
|
|
btrfs_cmds.c | 31 +++++++++++++++++++++++++++++++
|
|
1 files changed, 31 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/btrfs_cmds.c b/btrfs_cmds.c
|
|
index c2fd09e..f7310ee 100644
|
|
--- a/btrfs_cmds.c
|
|
+++ b/btrfs_cmds.c
|
|
@@ -1871,6 +1871,37 @@ int do_get_default_subvol(int nargs, char **argv)
|
|
return 0;
|
|
}
|
|
|
|
+/**** man: btrfs filesystem df
|
|
+ *
|
|
+ * \Bbtrfs\b \Bfilesystem df\b\I <path>\i
|
|
+ *
|
|
+ * Print allocated and used data for all block group types.
|
|
+ *
|
|
+ * Print allocated and used data for all block group types.
|
|
+ *
|
|
+ * Example of filesystem created with default mkfs options:
|
|
+ *
|
|
+ * Data, RAID0: total=4.00GiB, used=0.00
|
|
+ * Data: total=8.00MiB, used=0.00
|
|
+ * System, RAID1: total=8.00MiB, used=4.00KiB
|
|
+ * System: total=4.00MiB, used=0.00
|
|
+ * Metadata, RAID1: total=1.00GiB, used=24.00KiB
|
|
+ * Metadata: total=8.00MiB, used=0.00
|
|
+ *
|
|
+ * Example of filesystem created with \Isingle\i profiles for data and metadata:
|
|
+ *
|
|
+ * Data: total=38.99GiB, used=58.89MiB
|
|
+ * System: total=4.00MiB, used=12.00KiB
|
|
+ * Metadata: total=1.01GiB, used=2.86MiB
|
|
+ *
|
|
+ * \Itotal\i allocated space
|
|
+ * \t
|
|
+ * \Iused\i actually used data
|
|
+ *
|
|
+ * This information gives better idea of allocated space than the 'df' utility,
|
|
+ * though it does not actually answer the question of how much free space there is.
|
|
+ ****/
|
|
+
|
|
int do_df_filesystem(int nargs, char **argv)
|
|
{
|
|
struct btrfs_ioctl_space_args *sargs;
|
|
--
|
|
1.7.6.233.gd79bc
|
|
|