summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Correct the check of the argument number for the "btrfs dev add|rem" commandsGoffredo Baroncelli2010-03-11
|
* Avoid the exit(2) function; instead return with an appropriate value;Goffredo Baroncelli2010-03-11
|
* Add the program name as the first parameter in the command of the btrfs toolGoffredo Baroncelli2010-03-11
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* new util: 'btrfs'ghigo2010-03-11
| | | | | | | | | | | | | | | This commit introduces a new command called 'btrfs' for managing a btrfs filesystem. 'btrfs' handles: - snapshot/subvolume creation - adding/removal of volume (ie: disk) - defragment of a tree - scan of a device searching a btrfs filesystem - re-balancing of the chunk on the disks - listing subvolumes and snapshots This has also been updated to include the new defrag range ioctl. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add new defrag range ioctl that can also compress files on demand.Chris Mason2010-03-11
|
* Btrfs-progs: add command to set default subvolJosef Bacik2010-02-28
| | | | | | | | | | | | | | | | | | This introduces a new btrfsctl option, -m, to allow you to set the default'ly mounted subvolume. You can do btrfsctl -m /your/subvolume and that will make that subvolume the subvolume that is mounted by default, or you can do btrfsctl -m <treeid> /any/subvolume and this will make the subvolume with tree id <treeid> the default'ly mounted subvolume. You can get the treeid by using the listing option. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add btrfs-list for listing subvolumesChris Mason2010-02-28
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add btrfs-map-logical program to map and read logical block numbersChris Mason2009-11-12
| | | | | | | | | This allows us to figure out which physical byte offset on which device is the real location for a given logical block number. It can optionally read the block in and save it to a file for debugging analysis. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* btrfsck: check root back/forward referencesYan, Zheng2009-09-21
| | | | | | | | This patch adds semantic checks for links to snapshot/subvolume and root back/forward references. Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* btrfsctl: add snapshot/subvolume destroy ioctlYan, Zheng2009-09-21
| | | | | | | resend Aaron Straus's patch Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* used space accounting fix for the converterYan Zheng2009-06-12
| | | | | | | | remove code that updates the total used space, since btrfs_update_block_group does that work now. Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* btrfs-progs v0.19Chris Mason2009-06-11
|
* Check duplicate backrefs for both data and metadataYan Zheng2009-06-11
| | | | | | | | | | lookup_inline_extent_backref only checks for duplicate backref for data extent. It assumes backrefs for tree block never conflict. This patch makes lookup_inline_extent_backref check duplicate backrefs for both data and tree block, so that we can detect potential bug earlier. Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Make sure all dirty blocks are written at commit timeYan Zheng2009-06-08
| | | | | | | | | Write dirty block groups may make some block groups dirty. This patch make btrfs_write_dirty_block_groups properly handle the recursion. Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Update converter for the new formatYan Zheng2009-06-08
| | | | | Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Mixed back reference (FORWARD ROLLING FORMAT CHANGE)Chris Mason2009-06-08
| | | | | | | | | | | | | | | | | This commit introduces a new kind of back reference for btrfs metadata. Once a filesystem has been mounted with this commit, IT WILL NO LONGER BE MOUNTABLE BY OLDER KERNELS. The new back ref provides information about pointer's key, level and in which tree the pointer lives. This information allow us to find the pointer by searching the tree. The shortcoming of the new back ref is that it only works for pointers in tree blocks referenced by their owner trees. This is mostly a problem for snapshots, where resolving one of these fuzzy back references would be O(number_of_snapshots) and quite slow. The solution used here is to use the fuzzy back references in the common case where a given tree block is only referenced by one root, and use the full back references when multiple roots have a reference
* Fix man page headers to include the correct program name.Chris Mason2009-06-03
|
* Fix printf format casting errorsLuca Bruno2009-06-03
| | | | | | | | | | | | There are still some warnings of the form: format '%llu' expects type 'long long unsigned int' but argument has type 'u64' In conjunction with -Werror, this is causing some build failures. Now they're properly casted, avoiding compiler warnings. Signed-off-by: Luca Bruno <lucab@debian.org> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Fix spelling mistake when running 'btrfsck' when argument doesn't exist.nick d2009-06-03
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Update btrfs-debug-tree to output more readable strings.Shen Feng2009-06-03
| | | | | | | | | | output objectid in btrfs_disk_key with human readable strings. Other updates are included for more readable output. Thanks Fengguang's fix to this patch. Signed-off-by: Shen Feng <shen@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add btrfs-show man pagePeng Tao2009-06-03
| | | | | Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add -V|--version to mkfs.btrfs argument parserLuca Bruno2009-06-03
| | | | | | | | | | | | | | | mkfs.btrfs now prints its version when invoked with -V|--version and exits without error. All other mkfs.* tools provide this feature and follow this implicit argument naming convention, as it is commonly used to check for helper tools presence. The corrisponding manual already mentions this option, no need to touch it. Signed-off-by: Luca Bruno <lucab@debian.org> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add btrfs-image man pagePeng Tao2009-06-03
| | | | | Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Fix typos in btrfsck, btrfsctl, mkfs.btrfs manualPeng Tao2009-06-03
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Fix print-tree.c to skip blocks it can't read instead of abortingChris Mason2009-05-13
|
* Add scan of the btrfs log tree to btrfs-debug-treeChris Mason2009-04-15
|
* Fix showblocks to display different colors for different metadata rootsChris Mason2009-03-09
|
* Add man/btrfsck.8.in and Makefile for man pagesGoldwyn Rodrigues2009-01-21
| | | | Signed-off-by: Goldwyn Rodrigues <rgoldwyn@gmail.com>
* Add man/btrfsctl.8.inGoldwyn Rodrigues2009-01-21
| | | | Signed-off-by: Goldwyn Rodrigues <rgoldwyn@gmail.com>
* Add man/mkfs.btrfs.8.inGoldwyn Rodrigues2009-01-21
| | | | | | | | | Kept the name with the name in, so that further processing such as BUILD_DATE BUILD_VERSION etc. could be included later. All man pages included in the man directory to avoid file cluttering. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.de>
* btrfsck.c: bit-fields should be unsignedWang Cong2009-01-21
| | | | | Signed-off-by: WANG Cong <wangcong@zeuux.org>
* btrfsck: Exit and print error message when not able to open a deviceThadeu Lima de Souza Cascardo2009-01-21
| | | | | | If btrfsck is not able to open a device, it segfaults. This fixes it and prints an error message too.
* btrfs-image.c: fix return valuesWang Cong2009-01-21
| | | | | | | | - Exit with non-zero when fail; - Don't exit in non-main functions, return. Signed-off-by: WANG Cong <wangcong@zeuux.org>
* btrfs-progs: make several functions staticWang Cong2009-01-21
| | | | | | | Make several functions static, and make one argument const. Signed-off-by: WANG Cong <wangcong@zeuux.org>
* Fix misleading error message in btrfsctlCalvin Walton2009-01-21
| | | | | | This updates Peter Klotz's original patch to use perror instead of fprintf when it fails to open /dev/btrfs-control
* Mention minimum size on devices that are considered too smallJan Engelhardt2009-01-21
| | | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* Modify Makefile to include man directoryGoldwyn Rodrigues2009-01-21
|
* Update convert for uninitialized block groupsYan Zheng2009-01-21
| | | | | | | | | | | There is a new feature 'uninitialized block groups' in ext4. Block and inode bitmaps in uninitialized block groups are uninitialized. This confuses the converter. The fix is call ext2fs_new_inode for each block group at open time. It set up uninitialized block and inode bitmaps appropriately. Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
* Drop bit-radix.[ch] filesChris Mason2009-01-21
| | | | | | | These are no longer in use Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Update version.sh to 0.18Chris Mason2009-01-16
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Fix ioctl arg size (userland incompatible change!)Chris Mason2009-01-16
| | | | | | | | | | | | | | | The structure used to send device in btrfs ioctl calls was not properly aligned, and so 32 bit ioctls would not work properly on 64 bit kernels. We could fix this with compat ioctls, but we're just one byte away and it doesn't make sense at this stage to carry about the compat ioctls forever at this stage in the project. This patch brings the ioctl arg up to an evenly aligned 4k. Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Update version.sh to v0.17Chris Mason2009-01-12
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Fix isize/nbytes update bugs in btrfs-convertYan Zheng2009-01-12
| | | | | | | These fix a few converter problems found by the new btrfsck code. Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
* Fix mispatch of the experimental warningsChris Mason2009-01-11
| | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Warn user that this release is experimentalJim Owens2009-01-09
| | | | | | | Post wiki pointer message for getting version status, limitations, and known problems. Signed-off-by: jim owens <jowens@hp.com>
* Fix an accessing freed memory bug in btrfsckYan Zheng2009-01-09
|
* Rename debug-tree to btrfs-debug-treeChris Mason2009-01-07
| | | | | Signed-off-by: Chris Mason <chris.mason@oracle.com>
* Add error processing for btrfsctl -aShen Feng2009-01-07
| | | | | | | | | | | brfsctl -a will do nothing and no error is output if btrfs.ko is not inserted. Since no caller do error processing for btrfs_register_one_device, make its return void and do error processing inside. Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
* debug-tree output tree/key type instead of idShen Feng2009-01-07
| | | | | | | This makes the tree name and key type output more readable. Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
* Update BUG_ON and WARN_ONShen Feng2009-01-07
| | | | | | | Define BUG_ON and WARN_ON as assert for easy debugging. Signed-off-by: Shen Feng <shen@cn.fujitsu.com>