[PATCH v2] fstests: btrfs: check qgroup doesn't crash when beyond limit

2021-01-11 Thread Qu Wenruo
There is a bug that, when btrfs is beyond qgroup limit, touching a file could crash btrfs. Such beyond limit situation needs to be intentionally created, e.g. writing 1GiB file, then limit the subvolume to 512 MiB. As current qgroup works pretty well at preventing us from reaching the limit. This

Re: Ping: [PATCH man-pages v6] Document encoded I/O

2021-01-11 Thread Omar Sandoval
On Fri, Dec 18, 2020 at 11:32:17AM +0100, Alejandro Colomar (man-pages) wrote: > Hi Omar, > > Linux 5.10 has been recently released. > Do you have any updates for this patch? > > Thanks, > > Alex Hi, Alex, Now that the holidays are over I'm revisiting this series and plan to send a new version

Re: Btrfs compression ratio > 34:1 possible?

2021-01-11 Thread Qu Wenruo
On 2021/1/12 上午7:32, Ole Tange wrote: I am trying to use Btrfs' compression on some highly compressible data. I try to make zstd give better performance than 34:1. This: $ truncate -s 1T /tmp/btrfs $ mkfs.btrfs /tmp/btrfs $ mount -o compress=zstd:9 /tmp/btrfs /mnt/btrfs $ h

Re: [PATCH v6 03/11] fs: add RWF_ENCODED for reading/writing compressed data

2021-01-11 Thread Omar Sandoval
On Thu, Nov 19, 2020 at 09:38:17AM +0200, Amir Goldstein wrote: > On Wed, Nov 18, 2020 at 9:18 PM Omar Sandoval wrote: > > > > From: Omar Sandoval > > > > Btrfs supports transparent compression: data written by the user can be > > compressed when written to disk and decompressed when read back. >

Btrfs compression ratio > 34:1 possible?

2021-01-11 Thread Ole Tange
I am trying to use Btrfs' compression on some highly compressible data. I try to make zstd give better performance than 34:1. This: $ truncate -s 1T /tmp/btrfs $ mkfs.btrfs /tmp/btrfs $ mount -o compress=zstd:9 /tmp/btrfs /mnt/btrfs $ head -c 10G /dev/zero > /mnt/btrfs/zero $ du

Re: [GIT PULL] Btrfs fixes for 5.11-rc4

2021-01-11 Thread pr-tracker-bot
The pull request you sent on Mon, 11 Jan 2021 22:09:55 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.11-rc3-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6e68b9961ff690ace07fac22c3c7752882ecc40a Thank you! -- Deet-doot-dot, I am a

Re: [PATCH 11/13] btrfs: keep track of the root owner for relocation reads

2021-01-11 Thread David Sterba
On Wed, Dec 16, 2020 at 11:22:15AM -0500, Josef Bacik wrote: > --- a/fs/btrfs/relocation.c > +++ b/fs/btrfs/relocation.c > @@ -98,6 +98,7 @@ struct tree_block { > u64 bytenr; > }; /* Use rb_simple_node for search/insert */ > struct btrfs_key key; > + u64 owner; >

Re: [PATCH 08/13] btrfs: abort the transaction if we fail to inc ref in btrfs_copy_root

2021-01-11 Thread David Sterba
On Wed, Dec 16, 2020 at 11:22:12AM -0500, Josef Bacik wrote: > I hit a pretty ugly corruption when doing some error injection, it turns Maybe it's useful to have the stack trace even for injected errors, it gives some perspective about the context and call chain.

Re: [PATCH 06/13] btrfs: add ASSERT()'s for deleting backref cache nodes

2021-01-11 Thread David Sterba
Regarding the subject, you can write plain 'assert', no need to spell it exactly as it's in the code. On Wed, Dec 16, 2020 at 11:22:10AM -0500, Josef Bacik wrote: > A weird KASAN problem that Zygo reported Please add the relevant part of the report to the changelog and/or link to the report itsel

[RFC][PATCH] btrfs : avoid O_DIRECT when the file is protected by CSUM

2021-01-11 Thread Goffredo Baroncelli
Dear all, this is an RFC. I made very few test, so use at your risk. In the past there were several reports [1][2] about corruption when O_DIRECT is used. Every time the analysis was the same: it is too difficult to sync the checksum with the data when O_DIRECT is used. This aim of this patch

Re: [PATCH 05/13] btrfs: do not WARN_ON() if we can't find the reloc root

2021-01-11 Thread David Sterba
On Wed, Dec 16, 2020 at 11:22:09AM -0500, Josef Bacik wrote: > Any number of things could have gone wrong, like ENOMEM or EIO, so don't > WARN_ON() if we're unable to find the reloc root in the backref code. Where does the ENOMEM or EIO happen? The return value from find_reloc_root is just a point

Re: [PATCH 04/13] btrfs: splice remaining dirty_bg's onto the transaction dirty bg list

2021-01-11 Thread David Sterba
On Wed, Dec 16, 2020 at 11:22:08AM -0500, Josef Bacik wrote: > While doing error injection testing with my relocation patches I hit the > following ASSERT() > > assertion failed: list_empty(&block_group->dirty_list), in > fs/btrfs/block-group.c:3356 > [ cut here ] > kernel

Re: [PATCH 01/13] btrfs: don't get an EINTR during drop_snapshot for reloc

2021-01-11 Thread David Sterba
On Wed, Dec 16, 2020 at 11:22:05AM -0500, Josef Bacik wrote: > This was partially fixed by f3e3d9cc35252, however it missed a spot when Please use full commit reference like f3e3d9cc3525 ("btrfs: avoid possible signal interruption of btrfs_drop_snapshot() on relocation tree") > we restart a trans

Re: [PATCH v5 2/8] btrfs: only let one thread pre-flush delayed refs in commit

2021-01-11 Thread David Sterba
On Mon, Jan 11, 2021 at 10:33:42AM +0200, Nikolay Borisov wrote: > On 8.01.21 г. 18:01 ч., David Sterba wrote: > > On Fri, Dec 18, 2020 at 02:24:20PM -0500, Josef Bacik wrote: > >> @@ -2043,23 +2043,22 @@ int btrfs_commit_transaction(struct > >> btrfs_trans_handle *trans) > >>btrfs_trans_relea

Re: [PATCH 1/2] btrfs: Make btrfs_start_delalloc_root's nr argument a long

2021-01-11 Thread David Sterba
On Mon, Jan 11, 2021 at 12:58:11PM +0200, Nikolay Borisov wrote: > It's currently u64 which gets instantly translated either to LONG_MAX > (if U64_MAX is passed) or casted to an unsigned long (which is in fact, > wrong because iwriteback_control::nr_to_write is a signed, long type). > > Just conve

Re: [PATCH] btrfs: send, remove stale code when checking for shared extents

2021-01-11 Thread David Sterba
On Mon, Jan 11, 2021 at 11:42:32AM +, fdman...@kernel.org wrote: > From: Filipe Manana > > After commit 040ee6120cb670 ("Btrfs: send, improve clone range") we do not > use anymore the data_offset field of struct backref_ctx, as after that we > do all the necessary checks for the data offset o

Re: [PATCH 2/2] btrfs: send: fix invalid commands for inodes with changed type but same gen

2021-01-11 Thread Roman Anasal | BDSU
On Mon, 2021-01-11 at 22:15 +0100, David Sterba wrote: > On Mon, Jan 11, 2021 at 08:02:43PM +0100, Roman Anasal wrote: > > --- a/fs/btrfs/send.c > > +++ b/fs/btrfs/send.c > > @@ -6299,12 +6299,18 @@ static int changed_inode(struct send_ctx > > *sctx, > > right_gen = btrfs_inode_generati

Re: [PATCH v11 09/40] btrfs: implement zoned chunk allocator

2021-01-11 Thread Josef Bacik
On 12/21/20 10:49 PM, Naohiro Aota wrote: This commit implements a zoned chunk/dev_extent allocator. The zoned allocator aligns the device extents to zone boundaries, so that a zone reset affects only the device extent and does not change the state of blocks in the neighbor device extents. Also,

Re: [PATCH 2/2] btrfs: send: fix invalid commands for inodes with changed type but same gen

2021-01-11 Thread kernel test robot
Hi Roman, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on kdave/for-next] [also build test WARNING on btrfs/next v5.11-rc3 next-20210111] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH 2/2] btrfs: send: fix invalid commands for inodes with changed type but same gen

2021-01-11 Thread David Sterba
On Mon, Jan 11, 2021 at 08:02:43PM +0100, Roman Anasal wrote: > --- a/fs/btrfs/send.c > +++ b/fs/btrfs/send.c > @@ -6299,12 +6299,18 @@ static int changed_inode(struct send_ctx *sctx, > right_gen = btrfs_inode_generation(sctx->right_path->nodes[0], > righ

[GIT PULL] Btrfs fixes for 5.11-rc4

2021-01-11 Thread David Sterba
Hi, more material for stable trees. Please pull, thanks. - tree-checker: check item end overflow - fix false warning during relocation regarding extent type - fix inode flushing logic, caused notable performance regression (since 5.10) - debugging fixups: - print correct offset for reloc t

Re: [PATCH v6 10/11] btrfs: implement RWF_ENCODED reads

2021-01-11 Thread Omar Sandoval
On Mon, Jan 11, 2021 at 03:35:24PM -0500, Josef Bacik wrote: > On 1/11/21 3:21 PM, Omar Sandoval wrote: > > On Thu, Dec 03, 2020 at 09:32:37AM -0500, Josef Bacik wrote: > > > On 11/18/20 2:18 PM, Omar Sandoval wrote: > > > > From: Omar Sandoval > > > > > > > > There are 4 main cases: > > > > > >

Re: [PATCH v11 08/40] btrfs: emulated zoned mode on non-zoned devices

2021-01-11 Thread Josef Bacik
On 12/21/20 10:49 PM, Naohiro Aota wrote: From: Johannes Thumshirn Emulate zoned btrfs mode on non-zoned devices. This is done by "slicing up" the block-device into static sized chunks and fake a conventional zone on each of them. The emulated zone size is determined from the size of device ext

Re: [PATCH 2/2] btrfs: send: fix invalid commands for inodes with changed type but same gen

2021-01-11 Thread Roman Anasal | BDSU
On Mon, 2021-01-11 at 22:30 +0300, Andrei Borzenkov wrote: > 11.01.2021 22:02, Roman Anasal пишет: > > When doing a send, if a new inode has the same number as an inode > > in the > > parent subvolume it will only be detected as to be recreated when > > the > > genrations differ. But with inodes in

Re: [PATCH v6 10/11] btrfs: implement RWF_ENCODED reads

2021-01-11 Thread Josef Bacik
On 1/11/21 3:21 PM, Omar Sandoval wrote: On Thu, Dec 03, 2020 at 09:32:37AM -0500, Josef Bacik wrote: On 11/18/20 2:18 PM, Omar Sandoval wrote: From: Omar Sandoval There are 4 main cases: 1. Inline extents: we copy the data straight out of the extent buffer. 2. Hole/preallocated extents: we

Re: [PATCH v6 10/11] btrfs: implement RWF_ENCODED reads

2021-01-11 Thread Omar Sandoval
On Thu, Dec 03, 2020 at 09:32:37AM -0500, Josef Bacik wrote: > On 11/18/20 2:18 PM, Omar Sandoval wrote: > > From: Omar Sandoval > > > > There are 4 main cases: > > > > 1. Inline extents: we copy the data straight out of the extent buffer. > > 2. Hole/preallocated extents: we fill in zeroes. > >

Re: [PATCH v11 07/40] btrfs: disallow fitrim in ZONED mode

2021-01-11 Thread Josef Bacik
On 12/21/20 10:49 PM, Naohiro Aota wrote: The implementation of fitrim is depending on space cache, which is not used and disabled for zoned btrfs' extent allocator. So the current code does not work with zoned btrfs. In the future, we can implement fitrim for zoned btrfs by enabling space cache

Re: [PATCH v11 06/40] btrfs: do not load fs_info->zoned from incompat flag

2021-01-11 Thread Josef Bacik
On 12/21/20 10:48 PM, Naohiro Aota wrote: From: Johannes Thumshirn Since fs_info->zoned is unioned with fs_info->zone_size, loading fs_info->zoned from the incompat flag screw up the zone_size. So, let's avoid to load it from the flag. It will be eventually set by btrfs_get_dev_zone_info_all_de

Re: [PATCH v11 05/40] btrfs: release path before calling into btrfs_load_block_group_zone_info

2021-01-11 Thread Josef Bacik
On 12/21/20 10:48 PM, Naohiro Aota wrote: From: Johannes Thumshirn Since we have no write pointer in conventional zones, we cannot determine allocation offset from it. Instead, we set the allocation offset after the highest addressed extent. This is done by reading the extent tree in btrfs_load

Re: [PATCH v11 04/40] btrfs: change superblock location on conventional zone

2021-01-11 Thread Josef Bacik
On 12/21/20 10:48 PM, Naohiro Aota wrote: We cannot use log-structured superblock writing in conventional zones since there is no write pointer to determine the last written superblock position. So, we write a superblock at a static location in a conventional zone. The written position is at the

Re: [PATCH 2/2] btrfs: send: fix invalid commands for inodes with changed type but same gen

2021-01-11 Thread Andrei Borzenkov
11.01.2021 22:02, Roman Anasal пишет: > When doing a send, if a new inode has the same number as an inode in the > parent subvolume it will only be detected as to be recreated when the > genrations differ. But with inodes in the same generation the emitted > commands will cause the receiver to fail

Re: [PATCH v11 03/40] btrfs: defer loading zone info after opening trees

2021-01-11 Thread Josef Bacik
On 12/21/20 10:48 PM, Naohiro Aota wrote: This is preparation patch to implement zone emulation on a regular device. To emulate zoned mode on a regular (non-zoned) device, we need to decide an emulating zone size. Instead of making it compile-time static value, we'll make it configurable at mkfs

[PATCH 1/2] btrfs: send: rename send_ctx.cur_inode_new_gen to cur_inode_recreated

2021-01-11 Thread Roman Anasal
cur_inode_new_gen is used to detect whether an inode was/has to be recreated which is - currently (!) - only based on whether a changed inode as differing generations. To allow additional checks for recreating an inode (see following patch) and still have a sane naming this change was made. Signed

[PATCH 0/2] btrfs: send: correctly recreate changed inodes

2021-01-11 Thread Roman Anasal
Trying to incremental send and receive some subvolumes I repeatedly ran into errors with btrfs-receive failing. Taking a deeper look into the issue showed that btrfs-send was producing (semantically) invalid command streams. I could pin down the conditions of this happening to having inodes with th

[PATCH 2/2] btrfs: send: fix invalid commands for inodes with changed type but same gen

2021-01-11 Thread Roman Anasal
When doing a send, if a new inode has the same number as an inode in the parent subvolume it will only be detected as to be recreated when the genrations differ. But with inodes in the same generation the emitted commands will cause the receiver to fail. This case does not happen when doing increm

Re: Reading files with bad data checksum

2021-01-11 Thread Goffredo Baroncelli
On 1/10/21 1:36 PM, David Woodhouse wrote: On Sun, 2021-01-10 at 13:08 +0100, Forza wrote: [...] It showed up as errors. There appears to be a btrfs bug there but since Yes, it is an old btrfs bug. And qemu is not the guilty. https://lore.kernel.org/linux-btrfs/cf8a733f-2c9d-7ffe-e865-4c13d

Get back to me

2021-01-11 Thread Jerome Mbatah
Hi dear friend, I'm Barr: Jerome Mbatah from Ghana west Africa. Please, I would wish to have a communication with you if you don`t mind. I will be waiting for your response. Thank you. Jerome.

Re: [PATCH v11 19/40] btrfs: extract page adding function

2021-01-11 Thread Josef Bacik
On 12/21/20 10:49 PM, Naohiro Aota wrote: This commit extract page adding to bio part from submit_extent_page(). The page is added only when bio_flags are the same, contiguous and the added page fits in the same stripe as pages in the bio. Condition checkings are reordered to allow early return

Re: [PATCH] btrfs: test incremental send after cloning extents from the same file

2021-01-11 Thread Filipe Manana
On Mon, Jan 11, 2021 at 4:08 PM Josef Bacik wrote: > > On 1/11/21 6:41 AM, fdman...@kernel.org wrote: > > From: Filipe Manana > > > > Test that an incremental send operation correctly issues clone operations > > for a file that had different parts of one of its extents cloned into > > itself, at

Re: [PATCH] btrfs: test incremental send after cloning extents from the same file

2021-01-11 Thread Josef Bacik
On 1/11/21 6:41 AM, fdman...@kernel.org wrote: From: Filipe Manana Test that an incremental send operation correctly issues clone operations for a file that had different parts of one of its extents cloned into itself, at different offsets, and a large part of that extent was overwritten, so al

Re: [PATCH] btrfs: send, fix invalid clone operations when cloning from the same file and root

2021-01-11 Thread Josef Bacik
On 1/11/21 6:41 AM, fdman...@kernel.org wrote: From: Filipe Manana When an incremental send finds an extent that is shared, it checks which file extent items in the range refer to that extent, and for those it emits clone operations, while for others it emits regular write operations to avoid c

Re: [PATCH] btrfs: no need to run delayed refs after commit_fs_roots

2021-01-11 Thread Nikolay Borisov
On 8.01.21 г. 18:23 ч., David Sterba wrote: > The inode number cache has been removed in this dev cycle, there's one > more leftover. We don't need to run the delayed refs again after > commit_fs_roots as stated in the comment, because btrfs_save_ino_cache > is no more since 5297199a8bca ("btrfs

Re: [PATCH v2] btrfs: Add test 154

2021-01-11 Thread Josef Bacik
On 1/11/21 4:17 AM, Nikolay Borisov wrote: This test verifies btrfs' free objectid management. I.e it ensures that the first objectid is always 256 in an fs tree. Signed-off-by: Nikolay Borisov Reviewed-by: Josef Bacik Will you add this to our staging branch so it gets picked up by the nigh

Re: [PATCH 1/2] btrfs: Make btrfs_start_delalloc_root's nr argument a long

2021-01-11 Thread Josef Bacik
On 1/11/21 5:58 AM, Nikolay Borisov wrote: It's currently u64 which gets instantly translated either to LONG_MAX (if U64_MAX is passed) or casted to an unsigned long (which is in fact, wrong because iwriteback_control::nr_to_write is a signed, long type). Just convert the function's argument to

Re: [PATCH] fstests: btrfs: check qgroup doesn't crash when beyond limit

2021-01-11 Thread Qu Wenruo
On 2021/1/11 下午8:15, Filipe Manana wrote: On Sat, Nov 14, 2020 at 12:09 AM Qu Wenruo wrote: On 2020/11/13 下午11:19, David Sterba wrote: On Thu, Nov 12, 2020 at 07:50:22AM +0800, Qu Wenruo wrote: +$BTRFS_UTIL_PROG quota enable $SCRATCH_MNT +$BTRFS_UTIL_PROG quota rescan -w $SCRATCH_MNT >>

Re: [PATCH] fstests: btrfs: check qgroup doesn't crash when beyond limit

2021-01-11 Thread Filipe Manana
On Sat, Nov 14, 2020 at 12:09 AM Qu Wenruo wrote: > > > > On 2020/11/13 下午11:19, David Sterba wrote: > > On Thu, Nov 12, 2020 at 07:50:22AM +0800, Qu Wenruo wrote: > +$BTRFS_UTIL_PROG quota enable $SCRATCH_MNT > +$BTRFS_UTIL_PROG quota rescan -w $SCRATCH_MNT >> $seqres.full > + > >>

Re: btrfs send -p failing: chown o257-1571-0 failed: No such file or directory

2021-01-11 Thread Filipe Manana
On Fri, Dec 18, 2020 at 11:44 AM Filipe Manana wrote: > > On Fri, Dec 18, 2020 at 7:25 AM Massimo B. wrote: > > > > On Mon, 2020-12-14 at 09:46 +, Filipe Manana wrote: > > > > > clone mb/Documents.AZ/0.SYNC/pdf - > > > source=mb/Documents.AZ/0.SYNC/pdf > > > > source offset=20705280

[PATCH] btrfs: send, remove stale code when checking for shared extents

2021-01-11 Thread fdmanana
From: Filipe Manana After commit 040ee6120cb670 ("Btrfs: send, improve clone range") we do not use anymore the data_offset field of struct backref_ctx, as after that we do all the necessary checks for the data offset of file extent items at clone_range(). Since there are no more users of data_off

[PATCH] btrfs: test incremental send after cloning extents from the same file

2021-01-11 Thread fdmanana
From: Filipe Manana Test that an incremental send operation correctly issues clone operations for a file that had different parts of one of its extents cloned into itself, at different offsets, and a large part of that extent was overwritten, so all the reflinks only point to subranges of the ext

[PATCH] btrfs: send, fix invalid clone operations when cloning from the same file and root

2021-01-11 Thread fdmanana
From: Filipe Manana When an incremental send finds an extent that is shared, it checks which file extent items in the range refer to that extent, and for those it emits clone operations, while for others it emits regular write operations to avoid corruption at the destination (as described and fi

[PATCH 2/2] btrfs: Remove always true condition in btrfs_start_delalloc_roots

2021-01-11 Thread Nikolay Borisov
Following the rework in "btrfs: shrink delalloc pages instead of full inodes" the nr variable is no longer passed by reference to start_delalloc_inodes hence it cannot change. Additionally we are always guaranteed for it to be positive number hence it's redundant to have it as a condition in the lo

[PATCH 1/2] btrfs: Make btrfs_start_delalloc_root's nr argument a long

2021-01-11 Thread Nikolay Borisov
It's currently u64 which gets instantly translated either to LONG_MAX (if U64_MAX is passed) or casted to an unsigned long (which is in fact, wrong because iwriteback_control::nr_to_write is a signed, long type). Just convert the function's argument to be long time which obviates the need to manua

Re: [PATCH v11 00/40] btrfs: zoned block device support

2021-01-11 Thread Johannes Thumshirn
On 22/12/2020 14:40, Christoph Hellwig wrote: > I just did a very quick look, but didn't see anything (based on the > subjects) that deals with ITER_BVEC direct I/O. Is the support for that > hidden somewhere? I couldn't reproduce the problem you reported and asked for a reproducer. Probably the

Re: [PATCH] btrfs: fixup read_policy latency

2021-01-11 Thread Anand Jain
On 8/1/21 9:57 pm, David Sterba wrote: On Wed, Jan 06, 2021 at 03:08:15PM +0800, Anand Jain wrote: In the meantime, since I have sent the base patch as below [1], the block layer commit 0d02129e76ed (block: merge struct block_device and struct hd_struct) has changed the first argument in the

[PATCH RFC 4/4] btrfs: introduce new read_policy round-robin

2021-01-11 Thread Anand Jain
Add round-robin read policy to route the read IO to the next device in the round-robin order. The chunk allocation and thus the stripe-index follows the order of free space available on devices. So to make the round-robin effective it shall follow the devid order instead of the stripe-index order.

[PATCH v3 3/4] btrfs: introduce new read_policy device

2021-01-11 Thread Anand Jain
Read-policy type 'device' and device flag 'read-preferred': The read-policy type device picks the device(s) flagged as read-preferred for reading stripes of type raid1, raid10, raid1c3 and raid1c4. A system might contain SSD, nvme, iscsi, or san lun, and which are all a non-rotational device, so

[PATCH v3 2/4] btrfs: introduce new device-state read_preferred

2021-01-11 Thread Anand Jain
This is a preparatory patch and introduces a new device flag 'read_preferred', RW-able using sysfs interface. Signed-off-by: Anand Jain --- v2: C style fixes. Drop space in between '! test_bit' and extra lines after it. fs/btrfs/sysfs.c | 53 ++

[PATCH v3 0/4] btrfs: read_policy types latency, device and round-robin

2021-01-11 Thread Anand Jain
v3: The block layer commit 0d02129e76ed (block: merge struct block_device and struct hd_struct) has changed the first argument in the function part_stat_read_all() in 5.11-rc1. So trickle down its changes in the patch 1/4. v2: Fixes as per review comments, as in the individual patches. v1: Drop t

[PATCH v3 1/4] btrfs: add read_policy latency

2021-01-11 Thread Anand Jain
The read policy type latency routes the read IO based on the historical average wait-time experienced by the read IOs through the individual device. This patch obtains the historical read IO stats from the kernel block layer and calculates its average. Example usage: echo "latency" > /sys/fs/btrf

Re: synchronize btrfs snapshots over a unreliable, slow connection

2021-01-11 Thread Cerem Cem ASLAN
> You can use `btrbk diff old-snap new-snap` to list changes between > snapshots. > The problem with 'btrbk diff' approach (as stated here [1]) is that it can not show changes for empty files, empty folders and deletions, because it also uses 'btrfs find_new' under the hood (see [2]). However, I

[PATCH v2] btrfs: Add test 154

2021-01-11 Thread Nikolay Borisov
This test verifies btrfs' free objectid management. I.e it ensures that the first objectid is always 256 in an fs tree. Signed-off-by: Nikolay Borisov --- * Changes since V1: - Added _require_btrfs_command - Save temporary output to a file and parse it from there - Call $AWK_PROG instead of pl

Re: [patch V3 13/37] mips/mm/highmem: Switch to generic kmap atomic

2021-01-11 Thread Sebastian Andrzej Siewior
On 2021-01-09 01:33:52 [+0100], Thomas Bogendoerfer wrote: > On Sat, Jan 09, 2021 at 12:58:05AM +0100, Thomas Bogendoerfer wrote: > > On Fri, Jan 08, 2021 at 08:20:43PM +, Paul Cercueil wrote: > > > Hi Thomas, > > > > > > 5.11 does not boot anymore on Ingenic SoCs, I bisected it to this commit

Re: [PATCH v5 2/8] btrfs: only let one thread pre-flush delayed refs in commit

2021-01-11 Thread Nikolay Borisov
On 8.01.21 г. 18:01 ч., David Sterba wrote: > On Fri, Dec 18, 2020 at 02:24:20PM -0500, Josef Bacik wrote: >> I've been running a stress test that runs 20 workers in their own >> subvolume, which are running an fsstress instance with 4 threads per >> worker, which is 80 total fsstress threads.

Re: Reading files with bad data checksum

2021-01-11 Thread Nikolay Borisov
On 10.01.21 г. 13:52 ч., David Woodhouse wrote: > I migrated a system to btrfs which was hosting virtual machins with > qemu. > > Using it without disabling copy-on-write was a mistake, of course, and > it became horribly fragmented and slow. > > So I tried copying it to a new file... but it h