From: Goffredo Baroncelli Subject: [PATCH 0/2 V2] btrfs: a new tool to manage a btrfs filesystem Date: Wed, 17 Feb 2010 21:02:17 +0100 Message-ID: <201002172102.17816.kreijack@libero.it> Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Cc: Thomas Kupper , "Dipl.-Ing. Michael Niederle" , rk , Mike Fedyk To: Chris Mason , linux-btrfs@vger.kernel.org Return-path: List-ID: Hi all, enclosed in the next two emails you can find two patches which introduc= e a new=20 program called "btrfs". This program has the ambitious to replace the=20 utilities of the btrfs-prog package, like: - btrfsctl - btrfs-show - btrfs-volume - btrfs The goals are: - improve the usability of the tools=20 - add a man page which documents all the commands - correct the btrfsctl return codes I put a lot of attentions in order to avoid regression respect the old = tools. A clone of my git repository is available at http://cassiopea.homelinux.net/git/btrfs-command.git On the basis of the feedback of the previous patches I rearranged some = "short=20 command name" (-s, -c ...) in order to avoid collision. I renamed also = the=20 command "create" in "subvolume" (and the relative short command name fr= om '-S'=20 to '-c' :-) ). Chris, do you think that these patches are mergeable ? Comments are welcome. BR Goffredo --- Makefile | 5 btrfs.c | 775 ++++++++++++++++++++++++++++++++++++++++++++++++= +++++ man/Makefile | 5 man/btrfs.8.in | 122 ++++++++ 4 files changed, 905 insertions(+), 2 deletions(-) -- Example of use: $ btrfs Usage: btrfs snapshot|-s [/] Create a writeble snapshot of the subvolume wi= th the name in the directory. btrfs delete|-D Delete the subvolume . btrfs subvolume|-c [/] Create a subvolume in (or the current directory = if not passed). btrfs defrag|-f | [|...] Defragment a file or a directory. btrfs scan|-n [ [..] Scan all device for or the passed device for a btrfs filesystem. btrfs fssync|-y Force a fs sync on the filesystem btrfs resize|-z [+/-][gkm]|max Resize the file system. If 'max' is passed, the filesys= tem will occupe all available space on the device. btrfs show|-l [|