summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Rebuild with libzstd support on.debian/4.19.1-2archive/debian/4.19.1-2Dimitri John Ledkov2019-01-11
|
* Add btrfs-tools provides, too many things still the universal name.debian/4.19.1-1archive/debian/4.19.1-1Dimitri John Ledkov2018-12-11
|
* New upstream release.Dimitri John Ledkov2018-12-11
|
* Update upstream source from tag 'upstream/4.19.1'Dimitri John Ledkov2018-12-11
|\ | | | | | | Update to upstream version '4.19.1' with Debian dir 171bf4d92c150acf94e8e0a7633c4349c4e39ad6
| * New upstream version 4.19.1Dimitri John Ledkov2018-12-11
| |
| * Btrfs progs v4.19.1David Sterba2018-12-05
| | | | | | | | Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: update CHANGES for v4.19.1David Sterba2018-12-05
| | | | | | | | Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: fix typo in btrfs-list function exportJosh Soref2018-11-26
| | | | | | | | | | | | | | | | | | | | | | The header is exported as /usr/include/btrfs-list.h but as it's only a delcaration, it's not used for anything, so the change is safe. Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: mkfs: fix typo in "multipler" variablesJosh Soref2018-11-26
| | | | | | | | | | | | | | | | Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: utils: fix typo in a variableJosh Soref2018-11-26
| | | | | | | | | | | | | | | | Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: check: fix typo in device_extent_record::chunk_objectidJosh Soref2018-11-26
| | | | | | | | | | | | | | | | | | | | | | This header is exported to /usr/include/btrfs but there are no known users, so the change should be safe. Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: fix typos in user-visible stringsJosh Soref2018-11-26
| | | | | | | | | | | | | | | | | | | | | | * error messages * help strings Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: fix typos in commentsJosh Soref2018-11-26
| | | | | | | | | | | | | | | | Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: tests: fsck/025, fix typo in helpre nameJosh Soref2018-11-26
| | | | | | | | | | | | | | | | Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: tests: fix typos in test commentsJosh Soref2018-11-26
| | | | | | | | | | | | | | | | Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: fix typos in MakefileJosh Soref2018-11-26
| | | | | | | | | | | | | | | | | | | | | | Besides the comments, there's a slight change as the file config.log will be deleted by the 'clean-gen' rule. Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: docs: fix typos in READMEs, INSTALL and CHANGESJosh Soref2018-11-26
| | | | | | | | | | | | | | | | Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: docs: fix typos in DocumentationJosh Soref2018-11-26
| | | | | | | | | | | | | | | | Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: tests: pull zstd version 1.3.7 to the travis CIDavid Sterba2018-11-26
| | | | | | | | | | | | | | There's a newer version of zstd, without any obvious changes that would affect our build testing coverage. Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: link to libbtrfsutil/README from the main READMEDavid Sterba2018-11-26
| | | | | | | | Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: document API in READMEOmar Sandoval2018-11-26
| | | | | | | | | | | | | | | | | | btrfsutil.h and the Python docstrings are thorough, but I've gotten a couple of requests for a high-level overview of the available interfaces and example usages. Add them to README.md. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: bump version to 1.1.0Omar Sandoval2018-11-26
| | | | | | | | | | | | | | | | With the previous few fixes and features, we should bump the minor version. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: relax the privileges of subvolume iteratorOmar Sandoval2018-11-26
| | | | | | | | | | | | | | | | | | | | | | | | | | We can use the new BTRFS_IOC_GET_SUBVOL_ROOTREF and BTRFS_IOC_INO_LOOKUP_USER ioctls to allow non-root users to list subvolumes. This is based on a patch from Misono Tomohiro but takes a different approach (mainly, this approach is more similar to the existing tree search approach). Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: relax the privileges of subvolume_info()Omar Sandoval2018-11-26
| | | | | | | | | | | | | | | | | | | | | | | | Attempt to use the BTRFS_IOC_GET_SUBVOL_INFO ioctl (added in kernel 4.18) for subvolume_info() if not root. Also, rename get_subvolume_info_root() -> get_subvolume_info_privileged() for consistency with further changes. This is based on a patch from Misono Tomohiro. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: allow tests to create multiple Btrfs instancesOmar Sandoval2018-11-26
| | | | | | | | | | | | | | | | Some upcoming tests will need to create a second Btrfs filesystem, so add support for this to the test helpers. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: add test helpers for dropping privilegesOmar Sandoval2018-11-26
| | | | | | | | | | | | | | | | These will be used for testing some upcoming changes which allow unprivileged operations. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: use SubvolumeIterator as context manager in testsOmar Sandoval2018-11-26
| | | | | | | | | | | | | | | | We're leaking file descriptors, which makes it impossible to clean up the temporary mount point created by the test. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: document qgroup_inherit parameter in Python bindingsOmar Sandoval2018-11-26
| | | | | | | | | | | | | | This has been supported since day one, but it wasn't documented. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: change async parameters to async_ in Python bindingsOmar Sandoval2018-11-26
| | | | | | | | | | | | | | | | | | | | async became a keyword in Python 3.7, so, e.g., create_subvolume('foo', async=True) is now a syntax error. Fix it with the Python convention of adding a trailing underscore to the keyword (async -> async_). This is what several other Python libraries did to handle this. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: use top=0 as default for SubvolumeIterator()Omar Sandoval2018-11-26
| | | | | | | | | | | | | | | | | | | | Right now, we're defaulting to top=5 (i.e, all subvolumes). The documented default is top=0 (i.e, only beneath the given path). This is the expected behavior. Fix it and make the test cases cover it. Reported-by: Jonathan Lemon <bsd@fb.com> Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: docs: fix rendering of exponents in manual pagesDavid Sterba2018-11-20
| | | | | | | | | | | | | | | | Reported on IRC that the inode number limit appears to be 264, while the actual value is 2^64. Fix that for the manual page backend by redefining the format. Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: README: add link to INSTALLDavid Sterba2018-11-13
| | | | | | | | | | | | Make clickable and more visible in the formatted text. Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: kerncompat: rename swap to __swapDavid Sterba2018-11-13
| | | | | | | | | | | | | | | | | | | | | | The 'swap' is too generic and clashes with some userspace tools that compile against btrfs, eg. snapper when including boost::smart_ptr::scoped_array after kerncompat.h: /usr/include/boost/smart_ptr/scoped_array.hpp:127:13: error: macro "swap" requires 2 arguments, but only 1 given a.swap(b); Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: treewide: Fix missing declarationsRosen Penev2018-11-13
| | | | | | | | | | | | | | | | | | | | | | | | Found using -Wmissing-prototypes in GCC. This should improve LTO behavior. Note that set_free_space_tree_thresholds is an unused function. Adding inline seems to remove the unused function warning. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: task-utils: Fix comparison between pointer and integerRosen Penev2018-11-13
| | | | | | | | | | | | | | | | | | pthread_t is an opaque type, not an integer one. The > 0 makes no sense and compiler throws a warning. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: kernel-lib: bitops: Fix big endian compilationRosen Penev2018-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced bswap with _ variants bswap_32 etc. While it's a glibc extension, all of the popular libc implementations (glibc, uClibc, musl, BIONIC) seem to support it. Added static inline to two functions to match little endian variants. This fixes a linking error experienced when compiling on gcc 7.3.0 with LTO, possibly a bug that was fixed later. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * Btrfs progs v4.19David Sterba2018-11-03
| | | | | | | | Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: update CHANGES for v4.19David Sterba2018-11-03
| | | | | | | | Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: doc: Update btrfs-qgroup regarding the rescan conditionsQu Wenruo2018-10-31
| | | | | | | | | | | | | | | | | | | | | | | | Add a new section, QUOTA RESCAN, to explain why and when we need a full quota rescan when assigning/removing qgroup relationship. Also, since 'remove' shares the same options of 'assign', add reference to 'assign' options for 'remove' subcommand. Signed-off-by: Qu Wenruo <wqu@suse.com> [ update ] Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: qgroup: make --rescan the default behavior after assignQu Wenruo2018-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | Even though we have --rescan option, it still needs the user to manually specify it or call quota rescan command. This does not make much sense for the most common usecase and only confuses users. When the rescan is not desired, the --no-rescan option can be used, eg. when a mass qgruop assignment happens and the repeated rescan would slow things down. This is considered a marginal usecase. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: qgroup: Use bool to replace int for @rescanQu Wenruo2018-10-31
| | | | | | | | | | | | | | Use more appropriate type. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: btrfstune: Rename change_header_uuid to change_buffer_header_uuidNikolay Borisov2018-10-31
| | | | | | | | | | | | | | | | | | | | | | | | Rename the function so its name falls in line with the rest of btrfs nomenclature. So when we change the uuid of the header it's in fact of the buffer header. Also remove the root argument since it's used solely to take a reference to fs_info which can be done via the mandatory eb argument. No functional changes. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: btrfstune: Remove fs_info arg from change_device_uuidNikolay Borisov2018-10-31
| | | | | | | | | | | | | | | | | | | | This function already takes an extent buffer that contains a reference to the fs_info. Use that and reduce argument count. No functional changes. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: print-tree: Use bool for @followQu Wenruo2018-10-31
| | | | | | | | | | | | | | Just a minor cleanup to make the parameter easier to read. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: print-tree: Introduce --bfs and --dfs optionsQu Wenruo2018-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally print-tree uses depth first search to print trees. This works fine until we reach 3 level trees (root node level is 2). For tall trees whose root level is 2 or higher, DFS will mix nodes and leaves like the following example: Level 2 A / \ Level 1 B C / | | \ Level 0 D E F G DFS will cause the following output sequence: A B D E C F G Which in term of node/leave is: N N L L N L L Such mixed node/leave result is sometimes hard for human to read. This patch will introduce 2 new options, --bfs and --dfs. --dfs: keeps the original output sequence, and to keep things compatible it's the default behavior. --bfs: uses breadth-first search, and will cause better output sequence like: A B C D E F G Which in term of node/leave is: N N N L L L L Much better sorted and may become default in the future. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: print-tree: Introduce breadth-first searchQu Wenruo2018-10-31
| | | | | | | | | | | | | | | | | | Introduce a new function, bfs_print_children(), to do breadth-first search to print a node. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: Introduce function to find next sibling tree blockQu Wenruo2018-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new function, btrfs_next_sibling_tree_block(), which could find any sibling tree blocks at path->lowest_level, unlike level 0 limited btrfs_next_leaf(). Since this function is more generic than btrfs_next_leaf(), also make btrfs_next_leaf() a wrapper of btrfs_next_sibling_tree_block(), to keep the interface the same as kernel. This would provide the basis for later breadth-first search print-tree. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: Replace root parameter using fs_info for reada_for_search()Qu Wenruo2018-10-31
| | | | | | | | | | | | | | | | | | As the @root parameter is only used to get @fs_info, use fs_info directly instead. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * libbtrfsutil: factor out btrfs_util_subvolume_info_fdMisono Tomohiro2018-10-31
| | | | | | | | | | | | | | | | | | Factor out main logic of btrfs_util_subvolume_info_fd(). This is a preparation work to relax the root privilege of this function. No functional changes. Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
| * btrfs-progs: ioctl/libbtrfsutil: add 3 definitions of new unprivileged ioctlMisono Tomohiro2018-10-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy and add 3 definitions of new unprivileged ioctls: * BTRFS_IOC_GET_SUBVOL_INFO * BTRFS_IOC_GET_SUBVOL_ROOTREF * BTRFS_IOC_INO_LOOKUP_USER from kernel definitions. They will be used to implement the version of "btrfs subvolume list/show" that will not require root privileges. Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>