summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* btrfs-progs: build: drop deprecated utility from test dependenciesDavid Sterba2017-03-08
| | | | | | | Standalone btrfs-debug-tree has been superseded by 'btrfs inspect-internal dump-tree'. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: move internal bg size definitionDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: rename ext2 function to create a symlinkDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move mkfs helper implementation out of utilsDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move more mkfs declarations to the common headerDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: kerncompat: print trace from ASSERT, if enabledDavid Sterba2017-03-08
| | | | | | | | Commit bc2d4ccc46e2807964c74ce805fb6405ca2bc842 "btrfs-progs: kerncompat: disconnect assert and warning messages" forgot to add the print_trace call to assert_trace. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: build library by defaultDavid Sterba2017-03-08
| | | | | | | Add a convenience rule and build the library by default, not just at the installation phase. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: add stub makefile to convertDavid Sterba2017-03-08
| | | | | | A shortcut to compile btrfs-convert from inside the directory. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: use bit field for convert flagsDavid Sterba2017-03-08
| | | | | | | Use one flag field instead of several variables. The change cascades down to the callchain and modifies several functions. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: use helper for special inode number checkDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: better error handling in ext2_read_used_spaceDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: remove unused includesDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: use on-stack buffer for subvol name dirDavid Sterba2017-03-08
| | | | | | Get rid of dynamic allocation. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: use fixed lenght array for source fs nameDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: move struct initialization to the init functionDavid Sterba2017-03-08
| | | | | | | The context is zeroed in convert_open_fs after and overwrites the rbtree initialization, which accidentally is the same (NULL). Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: add rule for building cscope indexDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: split makefile to generated and stable partsDavid Sterba2017-03-08
| | | | | | | | It's not really necessary to configure and regenerate Makefiles in cases like adding a new source file. The build environment and optional features are not affected by that. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: add rule for ctagsDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: update some forward declarationsDavid Sterba2017-03-08
| | | | | | Add missing and reorder so they come next to the structures using them. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: use wider types types for inode counts for progress ↵David Sterba2017-03-08
| | | | | | reports Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: mkfs: make list of source fs more visibleDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: remove directory-specific include pathsDavid Sterba2017-03-08
| | | | | | | | The convert and image utilities used include, but we specify the headers by path relative to the toplevel directory for clarity. The compiler option is not needed. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: use target deps on commandline via automatic variableDavid Sterba2017-03-08
| | | | | | | The dependencies are duplicated in many targets, but we can use the $^ variable to simplify the command line. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: replace target names with automatic variableDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: reorder target dependenciesDavid Sterba2017-03-08
| | | | | | | | | | | | | | | Reorder target dependencies: 1) target-specific objects 2) common objects 3) library objects 4) static libraries 1-3 are for faster detection of build failures, the specific objects reflect changes to the source, but otherwise is only a cosmetic change. The 4 is for correct order during linking, if we'd use the $^ variable. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: split LIBSDavid Sterba2017-03-08
| | | | | | | Not all the build targets use all libs listed in LIBS, separate the common and compression ones. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: list mkfs.btrfs build objects in a variableDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: build: list convert build objects in a variableDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: move implementation for interal conversion API to own fileDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: move ext2 conversion out of main.cDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: move ext2 definitions out of mainDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: move definitions for interal conversion API to own fileDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move fs features implementation to own fileDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move fs features declarations to own header from utilsDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: convert: move common api implementation to own fileDavid Sterba2017-03-08
| | | | | | Lots of moved code but no actual changes. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: mkfs: move common api implementation to own fileDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move convert definitions to own headerDavid Sterba2017-03-08
| | | | | | | Create a header for filesystem conversion API, the config and the main entry function. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move mkfs definitions to own headerDavid Sterba2017-03-08
| | | | | | | Create a header for filesystem creation API, the config and the main entry function. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move some common definitions to own headerDavid Sterba2017-03-08
| | | | | | | Start a header for various defines that are supposed to be used in any context or subpart. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move help implemetnation to own fileDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: move help defines to own headerDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: find-root: rename usage helperDavid Sterba2017-03-08
| | | | | | This would clash with the generic usage from commands.h. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: Introduce macro to calculate backup superblock offsetQu Wenruo2017-03-08
| | | | | | | | | | Introduce a new macro, BTRFS_SB_OFFSET() to calculate backup superblock offset, this is handy if one wants to initialize static array at declaration time. Suggested-by: David Sterba <dsterba@suse.cz> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: Introduce kernel sizes to cleanup large intermediate numberQu Wenruo2017-03-08
| | | | | | | | | | | Large numbers like (1024 * 1024 * 1024) may cost reader/reviewer to waste one second to convert to 1G. Introduce kernel include/linux/sizes.h to replace any intermediate number larger than 4096 (not including 4096) to SZ_*. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: introduce global configDavid Sterba2017-03-08
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* Btrfs progs v4.9.1David Sterba2017-01-27
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: update CHANGES for v4.9.1David Sterba2017-01-27
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: mkfs/convert: separate the convert part from make_btrfsDavid Sterba2017-01-27
| | | | | | | The regulare mkfs_btrfs does not anything special about convert and just passes the arguments. Make that two functions. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: tests: use built binaries for 004-send-parent-multi-subvolDavid Sterba2017-01-27
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: tests: add variable quotation to cli-testsDavid Sterba2017-01-27
| | | | Signed-off-by: David Sterba <dsterba@suse.com>