Re: Btrfs progs pre-release 5.2-rc1

2019-06-28 Thread Graham Cobb
On 28/06/2019 18:40, David Sterba wrote: > Hi, > > this is a pre-release of btrfs-progs, 5.2-rc1. > > The proper release is scheduled to next Friday, +7 days (2019-07-05), but can > be postponed if needed. > > Scrub status has been reworked: > > UUID: bf8720e0-606b-4065-8320-b48df

[PATCH v2 2/2] Btrfs: fix ENOSPC errors, leading to transaction aborts, when cloning extents

2019-06-28 Thread fdmanana
From: Filipe Manana When cloning extents (or deduplicating) we create a transaction with a space reservation that considers we will drop or update a single file extent item of the destination inode (that we modify a single leaf). That is fine for the vast majority of scenarios, however it might h

[PATCH v2 1/2] Btrfs: factor out extent dropping code from hole punch handler

2019-06-28 Thread fdmanana
From: Filipe Manana Move the code that is responsible for dropping extents in a range out of btrfs_punch_hole() into a new helper function, btrfs_punch_hole_range(), so that later it can be used by the reflinking (extent cloning and dedup) code to fix a ENOSPC bug. Signed-off-by: Filipe Manana

[PATCH v2] generic: test cloning large exents to a file with many small extents

2019-06-28 Thread fdmanana
From: Filipe Manana Test that if we clone a file with some large extents into a file that has many small extents, when the fs is nearly full, the clone operation does not fail and produces the correct result. This is motivated by a bug found in btrfs wich is fixed by the following patches for th

Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

2019-06-28 Thread linux-btrfs
Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

[PATCH 3/4] vfs: flush and wait for io when setting the immutable flag via FSSETXATTR

2019-06-28 Thread Darrick J. Wong
From: Darrick J. Wong When we're using FS_IOC_FSSETXATTR to set the immutable flag on a file, we need to ensure that userspace can't continue to write the file after the file becomes immutable. To make that happen, we have to flush all the dirty pagecache pages to disk to ensure that we can fail

[PATCH 2/5] vfs: create a generic checking function for FS_IOC_FSSETXATTR

2019-06-28 Thread Darrick J. Wong
From: Darrick J. Wong Create a generic checking function for the incoming FS_IOC_FSSETXATTR fsxattr values so that we can standardize some of the implementation behaviors. Signed-off-by: Darrick J. Wong Reviewed-by: Jan Kara --- fs/btrfs/ioctl.c | 17 + fs/ext4/ioctl.c|

[PATCH 3/5] vfs: teach vfs_ioc_fssetxattr_check to check project id info

2019-06-28 Thread Darrick J. Wong
From: Darrick J. Wong Standardize the project id checks for FSSETXATTR. Signed-off-by: Darrick J. Wong Reviewed-by: Jan Kara --- fs/ext4/ioctl.c| 27 --- fs/f2fs/file.c | 27 --- fs/inode.c | 13 + fs/xfs/xfs_io

[PATCH 2/4] vfs: flush and wait for io when setting the immutable flag via SETFLAGS

2019-06-28 Thread Darrick J. Wong
From: Darrick J. Wong When we're using FS_IOC_SETFLAGS to set the immutable flag on a file, we need to ensure that userspace can't continue to write the file after the file becomes immutable. To make that happen, we have to flush all the dirty pagecache pages to disk to ensure that we can fail a

[PATCH 4/4] vfs: don't allow most setxattr to immutable files

2019-06-28 Thread Darrick J. Wong
From: Darrick J. Wong The chattr manpage has this to say about immutable files: "A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file, most of the file's metadata can not be modified, and the file can not be opened in write mode."

[PATCH 1/4] mm/fs: don't allow writes to immutable files

2019-06-28 Thread Darrick J. Wong
From: Darrick J. Wong The chattr manpage has this to say about immutable files: "A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file, most of the file's metadata can not be modified, and the file can not be opened in write mode."

[PATCH 1/5] vfs: create a generic checking and prep function for FS_IOC_SETFLAGS

2019-06-28 Thread Darrick J. Wong
From: Darrick J. Wong Create a generic function to check incoming FS_IOC_SETFLAGS flag values and later prepare the inode for updates so that we can standardize the implementations that follow ext4's flag values. Note that the efivarfs implementation no longer fails a no-op SETFLAGS without CAP_

[PATCH v6 0/4] vfs: make immutable files actually immutable

2019-06-28 Thread Darrick J. Wong
Hi all, The chattr(1) manpage has this to say about the immutable bit that system administrators can set on files: "A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file, most of the file's metadata can not be modified, and the file

Btrfs progs pre-release 5.2-rc1

2019-06-28 Thread David Sterba
Hi, this is a pre-release of btrfs-progs, 5.2-rc1. The proper release is scheduled to next Friday, +7 days (2019-07-05), but can be postponed if needed. Scrub status has been reworked: UUID: bf8720e0-606b-4065-8320-b48df2e8e669 Scrub started:Fri Jun 14 12:00:00 2019 Status

Re: [PATCH 1/2] btrfs: inode: Don't compress if NODATASUM or NODATACOW set

2019-06-28 Thread David Sterba
On Fri, Jun 28, 2019 at 08:09:46PM +0800, Qu Wenruo wrote: > > > On 2019/6/28 下午7:34, David Sterba wrote: > > On Fri, Jun 28, 2019 at 09:26:53AM +0800, Qu Wenruo wrote: > >> > >> > >> On 2019/6/27 下午10:58, David Sterba wrote: > >>> On Tue, Jun 25, 2019 at 04:24:57PM +0800, Qu Wenruo wrote: >

Re: [PATCH 1/2] btrfs: inode: Don't compress if NODATASUM or NODATACOW set

2019-06-28 Thread Qu Wenruo
On 2019/6/28 下午7:34, David Sterba wrote: > On Fri, Jun 28, 2019 at 09:26:53AM +0800, Qu Wenruo wrote: >> >> >> On 2019/6/27 下午10:58, David Sterba wrote: >>> On Tue, Jun 25, 2019 at 04:24:57PM +0800, Qu Wenruo wrote: Ping? This patch should fix the problem of compressed extent even

Re: [PATCH 1/2] btrfs: inode: Don't compress if NODATASUM or NODATACOW set

2019-06-28 Thread David Sterba
On Fri, Jun 28, 2019 at 09:26:53AM +0800, Qu Wenruo wrote: > > > On 2019/6/27 下午10:58, David Sterba wrote: > > On Tue, Jun 25, 2019 at 04:24:57PM +0800, Qu Wenruo wrote: > >> Ping? > >> > >> This patch should fix the problem of compressed extent even when > >> nodatasum is set. > >> > >> It has b

Re: "bad tree block start" when trying to mount on ARM

2019-06-28 Thread Qu Wenruo
On 2019/6/28 下午4:00, Erik Jensen wrote: >> So it's either the block layer reading some wrong from the disk or btrfs >> layer doesn't do correct endian convert. > > My ARM board is running in little endian mode, so it doesn't seem like > endianness should be an issue. (It is 32-bits versus my des

Re: [PATCH 1/2] btrfs: inode: Don't compress if NODATASUM or NODATACOW set

2019-06-28 Thread Qu Wenruo
On 2019/6/28 下午2:56, Anand Jain wrote: > > >> On 28 Jun 2019, at 1:58 PM, Qu Wenruo wrote: >> >> >> >> On 2019/6/28 上午10:47, Anand Jain wrote: >>> On 27/6/19 10:58 PM, David Sterba wrote: On Tue, Jun 25, 2019 at 04:24:57PM +0800, Qu Wenruo wrote: > Ping? > > This patch should