|author||Mark Fasheh <firstname.lastname@example.org>||2016-01-20 13:49:26 -0800|
|committer||David Sterba <email@example.com>||2016-03-14 13:42:47 +0100|
btrfs-progs: filesystem: add 'du' command
'btrfs du' differs from regular du in that it will work to resolve which blocks are shared between files in its list. This gives the user a more accurate bytecount from which they can make decisions regarding management of their file space. We still print a total number of bytes counted (like regular du), but also print the number of bytes which were found to have been shared amongst the file set provided. From there it becomes trivial to calculate how much space is exclusively owned. Signed-off-by: Mark Fasheh <firstname.lastname@example.org> [ rename files to reflect the filesystem command group, add GPL v2 file headers ] Signed-off-by: David Sterba <email@example.com>
Diffstat (limited to 'cmds-fi-du.h')
1 files changed, 23 insertions, 0 deletions
diff --git a/cmds-fi-du.h b/cmds-fi-du.h
new file mode 100644
@@ -0,0 +1,23 @@
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License v2 as published by the Free Software Foundation.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 021110-1307, USA.
+extern const char * const cmd_filesystem_du_usage;
+int cmd_filesystem_du(int argc, char **argv);
+#endif /* __CMDS_FILESYSTEM_DU_H__ */