David Sterba
dbe176d71a
btrfs-progs: remove unused argument from clear_extent_bits
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
16ce9d6069
btrfs-progs: remove unused function wait_on_tree_block_writeback
...
This used to be a kernel stub but has been removed from kernel long time
ago.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
029a5608c9
btrfs-progs: remove unused argument from btrfs_lookup_inode_ref
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
3b6d0d46b4
btrfs-progs: remove unused argument from free_chunk_item
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
b53af22c24
btrfs-progs: remove unused argument from write_and_map_eb
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
9bdbe12644
btrfs-progs: remove unused argument from setup_inline_extent_backref
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
54608c1a07
btrfs-progs: remove unused argument from extent_data_ref_count
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
6e1510e0fe
btrfs-progs: remove unused argument from btrfs_csum_data
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
175b972c6b
btrfs-progs: remove unused parameter from truncate_one_csum
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
497f974294
btrfs-progs: opencode trivial helper btrfs_free_transaction
...
It also does not exist in kernel code.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
4999d033d3
btrfs-progs: remove unused helpers from ctree.h
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
2fefed2601
btrfs-progs: shared: cleanup includes in ulist.c
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
390db8a346
btrfs-progs: shared: remove debug code from ulist
...
Sync with kernel sources, we don't define CONFIG_BTRFS_DEBUG in
userspace anyway.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
4049542d4f
btrfs-progs: shared: copy ulist_del from kernel
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
886a8565e0
btrfs-progs: move ulist.[ch] to kernel-shared
...
The implementation of ulist_* is same for kernel and userspace, without
dependencies, so we can keep it separately for code sync.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
1ffcc9b455
btrfs-progs: move prefixcmp helper to utils
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
Goldwyn Rodrigues
2db52a6a48
btrfs-progs: Remove unused function arg in delete_extent_records
...
new_len is not used in delete_extent_records().
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
Austin S. Hemmelgarn
01bba62728
btrfs-progs: better document btrfs receive security
...
This adds some extra documentation to the btrfs-receive manpage that
explains some of the security related aspects of btrfs-receive. The
first part covers the fact that the subvolume being received is writable
until the receive finishes, and the second covers the current lack of
sanity checking of the send stream.
Signed-off-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
Suggested-by: Graham Cobb <g.btrfs@cobb.uk.net>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
99063d88af
btrfs-progs: drop unused argument from btrfs_del_ptr
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
c6eae415ee
btrfs-progs: drop unused argument from btrfs_extend_item
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:47 +01:00
David Sterba
4069aa73d3
btrfs-progs: drop unused argument from btrfs_truncate_item
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
Jonathan Boulle
2c23b7b871
btrfs-progs: docs: fix typo in receive man page
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
eb111e9f39
btrfs-progs: move message helpers implementation out of header
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
bb104f5bce
btrfs-progs: move message helpers out of utils
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
a09f0e96e7
btrfs-progs: move utils code out of header
...
There are not performance critical static inlines, we can do the normal
declaration/definition split for various helpers.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
ca92914804
btrfs-progs: convert: improve assert in make_convert_btrfs
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
52319450e7
btrfs-progs: convert: rename members that clash with other functions
...
Rename 'free' and also 'used' for consistency.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
d1d99f50e3
btrfs-progs: mkfs: use const char for label
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
6783002cd3
btrfs-progs: mkfs: make make_cfg::blocks an internal member
...
The caller of make_btrfs does not need to set it, it's for internal use
and can be read after mkfs ends.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
a2ed85a11d
btrfs-progs: mkfs: describe fields of btrfs_mkfs_config
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
e945e27712
btrfs-progs: mkfs: clear whole mkfs_cfg at once
...
Zero out the structure and set only the requested fields.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
2920c8d526
btrfs-progs: build: remove unused variables from docs makefile
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
5eff096b78
btrfs-progs: build: use MAKEOPTS where missing
...
$(MAKE) should also use MAKEOPTS.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
0c94504d06
btrfs-progs: build: drop deprecated utility from test dependencies
...
Standalone btrfs-debug-tree has been superseded by
'btrfs inspect-internal dump-tree'.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
1f739d73e3
btrfs-progs: convert: move internal bg size definition
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
39aa42147a
btrfs-progs: convert: rename ext2 function to create a symlink
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
ed4c7428b7
btrfs-progs: move mkfs helper implementation out of utils
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
11c83cefb8
btrfs-progs: move more mkfs declarations to the common header
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
df32b5fa22
btrfs-progs: kerncompat: print trace from ASSERT, if enabled
...
Commit bc2d4ccc46
"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>
2017-03-08 13:00:46 +01:00
David Sterba
d7e3f1d0b7
btrfs-progs: build: build library by default
...
Add a convenience rule and build the library by default, not just at the
installation phase.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
f6dfc0263d
btrfs-progs: build: add stub makefile to convert
...
A shortcut to compile btrfs-convert from inside the directory.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
0c362b9031
btrfs-progs: convert: use bit field for convert flags
...
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>
2017-03-08 13:00:46 +01:00
David Sterba
c45a060f3e
btrfs-progs: convert: use helper for special inode number check
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
9368a77456
btrfs-progs: convert: better error handling in ext2_read_used_space
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
5bcff79f14
btrfs-progs: convert: remove unused includes
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
4927a9b268
btrfs-progs: convert: use on-stack buffer for subvol name dir
...
Get rid of dynamic allocation.
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
6b74f2fbe3
btrfs-progs: convert: use fixed lenght array for source fs name
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
cf83a41a02
btrfs-progs: convert: move struct initialization to the init function
...
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>
2017-03-08 13:00:46 +01:00
David Sterba
663253415f
btrfs-progs: build: add rule for building cscope index
...
Signed-off-by: David Sterba <dsterba@suse.com>
2017-03-08 13:00:46 +01:00
David Sterba
732056e3d3
btrfs-progs: build: split makefile to generated and stable parts
...
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>
2017-03-08 13:00:46 +01:00