summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* btrfs-progs: teach print_leaf about temporary item subtypesDavid Sterba2016-11-09
| | | | | [ kernel patch 9f07e1d76eaeeddedcf9651395b4a8f870df31f0 ] Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: teach print_leaf about permanent item subtypesDavid Sterba2016-11-09
| | | | | [ kernel patch 585a3d0d238dfe42909cb58b0d05f644365fed14 ] Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: switch dev stats item to the permanent item keyDavid Sterba2016-11-09
| | | | | [ kernel patch 242e2956e4afde7727fffe21adc0a7b198b77f96 ] Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: introduce key type for persistent permanent itemsDavid Sterba2016-11-09
| | | | | | | | | | | | | | The number of distinct key types is not that big that we could waste one for something new we want to store in the tree. Similar to the temporary items, we'll introduce a new name for an existing key value and use the objectid for further extension. The victim is the BTRFS_DEV_STATS_KEY (248). The device stats are an example of a permanent item. [ kernel patch 50c2d5abe64c1726b48d292a2ab04f60e8238933 ] Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: print-tree: extract offset from the item keyDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: introduce key type for persistent temporary itemsDavid Sterba2016-11-09
| | | | | | | | | | | | | | The number of distinct key types is not that big that we could waste one for something new we want to store in the tree. We'll introduce a new name for an existing key value and use the objectid for further extension. The victim is the BTRFS_BALANCE_ITEM_KEY (248). The nature of the balance status item is a good example of the temporary item. It exists from beginning of the balance, keeps the status until it finishes. [ kernel patch 0bbbccb17fea86818e1a058faf5903aefd20b31a ] Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: mkfs: store creation time of the toplevel subvolumeDavid Sterba2016-11-09
| | | | | | | For unkonwn reasons, the creation time of the toplevel subvolume inode item hasn't been set. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: print missing data for file extent itemDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: print more root_item dataDavid Sterba2016-11-09
| | | | | | | Print a few more missing items of root_item (there are still some remaining). Drop key is printend unconditionally. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: print missing dir_item dataDavid Sterba2016-11-09
| | | | | | Add items from dir_item that are not printed, plus other adjustments. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: print missing inode_item dataDavid Sterba2016-11-09
| | | | | | Add items from inode_item that are not printed. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: add helper to print timespecDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: factor inode_item dump to functionDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: print missing dev_extent dataDavid Sterba2016-11-09
| | | | | | | Add items from chunk that are not printed, unify names according to the member names and reorder a bit. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: print missing chunk dataDavid Sterba2016-11-09
| | | | | | | Add items from chunk that are not printed, unify names according to the member names and reorder a bit. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: dump-tree: print missing dev_item dataDavid Sterba2016-11-09
| | | | | | | Add items from dev_item that are not printed, unify names according to the member names. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol show: print more details about toplevel subvolumeDavid Sterba2016-11-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The toplevel subvolume is special and the other listing code leaves it out so we have to add several special cases to handle it. There's no backreference so the path is built artificially. New helper btrfs_get_toplevel_subvol is a reduced version of btrfs_get_subvol. There's some information usually missing for the toplevel subvolume, eg. the uuid or creation info. This has to be fixed on the mkfs side, the other subvolumes are created by kernel. Example: /mnt Name: <FS_TREE> UUID: - Parent UUID: - Received UUID: - Creation time: - Subvolume ID: 5 Generation: 233 Gen at creation: 0 Parent ID: 0 Top level ID: 0 Flags: - Snapshot(s): subv1 Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: better error message if subvol insertion failsDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: remove ugly goto constructDavid Sterba2016-11-09
| | | | | | Jumping into an if is not considered nice. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: remove trivial helper root_lookup_initDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: consolidate uuid types accross functionsDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: add simplified helper for adding root backrefsDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: consilidate naming of otime varaiblesDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: simplify value assignmentsDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: remove useless commentsDavid Sterba2016-11-09
| | | | | | The search ioctl follows a well known usage pattern. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: cleanup layout argument setupDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: return void from btrfs_list_setup_filterDavid Sterba2016-11-09
| | | | | | As an early setup function, failure uisng exit is ok. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: subvol list: setup list filters laterDavid Sterba2016-11-09
| | | | | | First check for arguments and whether we can open the filesystem. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: list: switch to common message helpersDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: list: rename some helpersDavid Sterba2016-11-09
| | | | | | Using _volume_ is confusing, it's for subvolumes. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: use enum for list layout typeDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: list: constify prefix arugmentDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: use symbolic tree name when searchingDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: remove leading underscores from several helperDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: opencode trivial helper __free_all_subvolumnDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: use existing rootid resolving helper in btrfs_list_get_path_rootidDavid Sterba2016-11-09
| | | | | | | | The utils helper is not verbose in case of an error, for now the helper used for subvolume listing will print the error message but not duplicate the ioctl anymore. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: rename lookup_ino_rootidDavid Sterba2016-11-09
| | | | | | It does not resolve the inode number but path where fd has been opened. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: remove unused function btrfs_get_path_rootidDavid Sterba2016-11-09
| | | | | | Last user replaced with a more appropriate helper. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: qgroups show: handle errors when resolving root idDavid Sterba2016-11-09
| | | | | | | If btrfs_get_path_rootid fails, prints an error message but continues. Replace with a helper that returns an error. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: remove send-test toolQu Wenruo2016-11-09
| | | | | | | | Since new "receive --dump" has better output and structure, it's time to remove old and function-weak send-test tool. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: Add travis CI build supportRoman Lebedev2016-11-09
| | | | | | | | | Automated build checks for the devel branch and integration to coverity, using travis.org. Roman's initial .yml version has been adjusted for btrfs-progs needs. Author: Roman Lebedev <lebedev.ri@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: switch more messages to common helpersDavid Sterba2016-11-09
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: send: fix handling of multiple snapshots (-p option)Tsutomu Itoh2016-11-09
| | | | | | | | | | | | | | | | | | | | We cannot send multiple snapshots at once by -p option. [before] # btrfs send -f /tmp/data0 -p Snap0 Snap[12] At subvol Snap1 At subvol Snap2 ERROR: parent determination failed for 0 # [after] # btrfs send -f /tmp/data0 -p Snap0 Snap[12] At subvol Snap1 At subvol Snap2 # Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: Ignore clang complete fileQu Wenruo2016-11-09
| | | | | | | | | | | | While most guys are using ctags and cscope with vim, new completion tool like vim-clang_completion is gaining its popularity, due to its compiler level accuracy simpleness to use. Since ctags and cscope are already in .gitignore, I see no reason to reject .clang_complete. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: tests: switch to dump- commands from inspectDavid Sterba2016-11-09
| | | | | | | The dump-super and debug-tree commands are replacements for the standalone tools. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: fsck-tests: Check if clear space cache worksQu Wenruo2016-11-09
| | | | | | | Add test case to check the basic function of --clear-space-cache. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: check: add support to clear v1 free space cacheQu Wenruo2016-11-09
| | | | | | | | | | | | | | | | Kernel clear_cache mount option will only rebuild free space cache if the used space of that chunk has changed. So it won't ensure any corrupted free space cache get cleared. So add a new option "--clear-space-cache v1|v2" to btrfsck, to completely wipe out free space cache. So kernel won't complain again. Reported-by: Ivan P <chrnosphered@gmail.com> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> [ adjusted error messages, doc wording changes ] Signed-off-by: David Sterba <dsterba@suse.com>
* Btrfs progs v4.8.2David Sterba2016-10-26
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: update CHANGES for v4.8.2David Sterba2016-10-25
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: check: release path after usageGoldwyn Rodrigues2016-10-25
| | | | | | | | While performing an fsck, an assertion failure occurs because of reusing path in a loop. ctree.c:1112: btrfs_search_slot: Warning: assertion `p->nodes[0] != NULL` failed, value 0 Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>