[PATCH] generic: check whether we can truncate heavily reflinked file

2016-09-11 Thread Wang Xiaoguang
Signed-off-by: Wang Xiaoguang --- tests/generic/377 | 74 +++ tests/generic/377.out | 2 ++ tests/generic/group | 1 + 3 files changed, 77 insertions(+) create mode 100755 tests/generic/377 create mode 100644 tests/generic/377.out diff --

Re: Small fs

2016-09-11 Thread Duncan
Chris Murphy posted on Sun, 11 Sep 2016 21:03:04 -0600 as excerpted: > The man page says: > "The recommended size for the mixed mode is for filesystems less than > 1GiB." But in this case recommended !=default which requires some mental > gymnastics to rectify. If mixed-bg becomes obsolete upon en

Re: compress=lzo safe to use?

2016-09-11 Thread Duncan
Hans van Kranenburg posted on Sun, 11 Sep 2016 22:49:58 +0200 as excerpted: > So, you can use a lot of compress without problems for years. > > Only if your hardware is starting to break in a specific way, causing > lots and lots of checksum errors, the kernel might not be able to handle > all of

Re: Small fs

2016-09-11 Thread Duncan
Imran Geriskovan posted on Sun, 11 Sep 2016 21:56:07 +0300 as excerpted: > On 9/11/16, Duncan <1i5t5.dun...@cox.net> wrote: >> Martin Steigerwald posted on Sun, 11 Sep 2016 17:32:44 +0200 as >> excerpted: What is the smallest recommended fs size for btrfs? Can we say size should be in mu

Re: Small fs

2016-09-11 Thread Chris Murphy
On Sun, Sep 11, 2016 at 8:00 PM, Duncan <1i5t5.dun...@cox.net> wrote: > Chris Murphy posted on Sun, 11 Sep 2016 14:33:18 -0600 as excerpted: > >> Something else that's screwy in that bug that I just realized, why is it >> not defaulting to mixed-block groups on a 100MiB fallocated file? I >> though

Re: Small fs

2016-09-11 Thread Duncan
Chris Murphy posted on Sun, 11 Sep 2016 14:33:18 -0600 as excerpted: > Something else that's screwy in that bug that I just realized, why is it > not defaulting to mixed-block groups on a 100MiB fallocated file? I > thought mixed-bg was the default below a certain size like 2GiB or > whatever? Yo

Re: compress=lzo safe to use?

2016-09-11 Thread Steven Haigh
On 2016-09-12 05:48, Martin Steigerwald wrote: Am Sonntag, 26. Juni 2016, 13:13:04 CEST schrieb Steven Haigh: On 26/06/16 12:30, Duncan wrote: > Steven Haigh posted on Sun, 26 Jun 2016 02:39:23 +1000 as excerpted: >> In every case, it was a flurry of csum error messages, then instant >> death. >

Re: [PATCH 2/3] writeback: allow for dirty metadata accounting

2016-09-11 Thread Dave Chinner
On Fri, Sep 09, 2016 at 10:17:43AM +0200, Jan Kara wrote: > On Mon 22-08-16 13:35:01, Josef Bacik wrote: > > Provide a mechanism for file systems to indicate how much dirty metadata > > they > > are holding. This introduces a few things > > > > 1) Zone stats for dirty metadata, which is the same

Re: compress=lzo safe to use?

2016-09-11 Thread Hans van Kranenburg
On 09/11/2016 09:48 PM, Martin Steigerwald wrote: > Am Sonntag, 26. Juni 2016, 13:13:04 CEST schrieb Steven Haigh: >> On 26/06/16 12:30, Duncan wrote: >>> Steven Haigh posted on Sun, 26 Jun 2016 02:39:23 +1000 as excerpted: In every case, it was a flurry of csum error messages, then instant >>

Re: Small fs

2016-09-11 Thread Chris Murphy
On Sun, Sep 11, 2016 at 9:27 AM, Imran Geriskovan wrote: > What is the smallest recommended fs size for btrfs? It depends on the layout. And there is some confusion about the mkfs command message it returns when it doesn't work out. https://bugzilla.kernel.org/show_bug.cgi?id=112461 Something e

Re: compress=lzo safe to use? (was: Re: Trying to rescue my data :()

2016-09-11 Thread Chris Murphy
On Sun, Sep 11, 2016 at 2:06 PM, Adam Borowski wrote: > On Sun, Sep 11, 2016 at 09:48:35PM +0200, Martin Steigerwald wrote: >> Hmm… I found this from being referred to by reading Debian wiki page on >> BTRFS¹. >> >> I use compress=lzo on BTRFS RAID 1 since April 2014 and I never found an >> issue.

Re: Is stability a joke?

2016-09-11 Thread Chris Murphy
On Sun, Sep 11, 2016 at 8:54 AM, Martin Steigerwald wrote: > Am Sonntag, 11. September 2016, 14:39:14 CEST schrieb Waxhead: >> Martin Steigerwald wrote: >> > Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: >> > The Nouveau graphics driver have a nice feature matrix on

Re: Is stability a joke?

2016-09-11 Thread Chris Murphy
On Sun, Sep 11, 2016 at 7:02 AM, Hugo Mills wrote: > On Sun, Sep 11, 2016 at 02:39:14PM +0200, Waxhead wrote: >> Martin Steigerwald wrote: >> >Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: >> Thing is: This just seems to be when has a feature been implemented >> >>>

Re: compress=lzo safe to use? (was: Re: Trying to rescue my data :()

2016-09-11 Thread Adam Borowski
On Sun, Sep 11, 2016 at 09:48:35PM +0200, Martin Steigerwald wrote: > Hmm… I found this from being referred to by reading Debian wiki page on > BTRFS¹. > > I use compress=lzo on BTRFS RAID 1 since April 2014 and I never found an > issue. Steven, your filesystem wasn´t RAID 1 but RAID 5 or 6? >

Re: Small fs

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 19:46:32 CEST schrieb Hugo Mills: > On Sun, Sep 11, 2016 at 09:13:28PM +0200, Martin Steigerwald wrote: > > Am Sonntag, 11. September 2016, 16:44:23 CEST schrieb Duncan: > > > * Metadata, and thus mixed-bg, defaults to DUP mode on a single-device > > > filesystem (ex

compress=lzo safe to use? (was: Re: Trying to rescue my data :()

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 26. Juni 2016, 13:13:04 CEST schrieb Steven Haigh: > On 26/06/16 12:30, Duncan wrote: > > Steven Haigh posted on Sun, 26 Jun 2016 02:39:23 +1000 as excerpted: > >> In every case, it was a flurry of csum error messages, then instant > >> death. > > > > This is very possibly a known bug

Re: Small fs

2016-09-11 Thread Hugo Mills
On Sun, Sep 11, 2016 at 09:13:28PM +0200, Martin Steigerwald wrote: > Am Sonntag, 11. September 2016, 16:44:23 CEST schrieb Duncan: > > * Metadata, and thus mixed-bg, defaults to DUP mode on a single-device > > filesystem (except on ssd where I actually still use it myself, and > > recommend it e

Re: Small fs

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 21:56:07 CEST schrieb Imran Geriskovan: > On 9/11/16, Duncan <1i5t5.dun...@cox.net> wrote: > > Martin Steigerwald posted on Sun, 11 Sep 2016 17:32:44 +0200 as excerpted: > >>> What is the smallest recommended fs size for btrfs? > >>> Can we say size should be in mult

Re: Small fs

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 16:44:23 CEST schrieb Duncan: > * Metadata, and thus mixed-bg, defaults to DUP mode on a single-device > filesystem (except on ssd where I actually still use it myself, and > recommend it except for ssds that do firmware dedupe). In mixed-mode > this means two co

Re: [PATCH 3/3] ioctl_xfs_ioc_getfsmap.2: document XFS_IOC_GETFSMAP ioctl

2016-09-11 Thread Darrick J. Wong
On Sat, Sep 10, 2016 at 10:00:29AM +1000, Dave Chinner wrote: > On Thu, Sep 08, 2016 at 11:07:16PM -0700, Darrick J. Wong wrote: > > On Fri, Sep 09, 2016 at 09:38:06AM +1000, Dave Chinner wrote: > > > On Tue, Aug 30, 2016 at 12:09:49PM -0700, Darrick J. Wong wrote: > > > > > I recall for FIEMAP tha

Re: Small fs

2016-09-11 Thread Imran Geriskovan
On 9/11/16, Duncan <1i5t5.dun...@cox.net> wrote: > Martin Steigerwald posted on Sun, 11 Sep 2016 17:32:44 +0200 as excerpted: >>> What is the smallest recommended fs size for btrfs? >>> Can we say size should be in multiples of 64MB? >> Do you want to know the smalled *recommended* or the smallest

Re: Is stability a joke?

2016-09-11 Thread Marc MERLIN
On Sun, Sep 11, 2016 at 02:39:14PM +0200, Waxhead wrote: > That is exactly the same reason I don't edit the wiki myself. I could of > course get it started and hopefully someone will correct what I write, but I > feel that if I start this off I don't have deep enough knowledge to do a > proper star

Re: Is stability a joke?

2016-09-11 Thread Duncan
Martin Steigerwald posted on Sun, 11 Sep 2016 14:05:03 +0200 as excerpted: > Just add another column called "Production ready". Then research / ask > about production stability of each feature. The only challenge is: Who > is authoritative on that? I´d certainly ask the developer of a feature, > b

Re: Small fs

2016-09-11 Thread Duncan
Martin Steigerwald posted on Sun, 11 Sep 2016 17:32:44 +0200 as excerpted: > Am Sonntag, 11. September 2016, 18:27:30 CEST schrieben Sie: >> What is the smallest recommended fs size for btrfs? >> >> - There are mentions of 256MB around the net. >> - Gparted reserves minimum of 256MB for btrfs. >>

Re: Small fs

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 18:27:30 CEST schrieben Sie: > What is the smallest recommended fs size for btrfs? > > - There are mentions of 256MB around the net. > - Gparted reserves minimum of 256MB for btrfs. > > With an ordinary partition on a single disk, > fs created with just "mkfs.btrfs

Small fs

2016-09-11 Thread Imran Geriskovan
What is the smallest recommended fs size for btrfs? - There are mentions of 256MB around the net. - Gparted reserves minimum of 256MB for btrfs. With an ordinary partition on a single disk, fs created with just "mkfs.btrfs /dev/sdxx": - 128MB works fine. - 127MB works but as if it is 64MB. Can w

Re: Is stability a joke?

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 16:54:25 CEST schrieben Sie: > Am Sonntag, 11. September 2016, 14:39:14 CEST schrieb Waxhead: > > Martin Steigerwald wrote: > > > Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: > > > The Nouveau graphics driver have a nice feature matr

Re: Is stability a joke?

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 13:02:21 CEST schrieb Hugo Mills: > On Sun, Sep 11, 2016 at 02:39:14PM +0200, Waxhead wrote: > > Martin Steigerwald wrote: > > >Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: > > Thing is: This just seems to be when has a feature been i

Re: Is stability a joke?

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 14:39:14 CEST schrieb Waxhead: > Martin Steigerwald wrote: > > Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: > > The Nouveau graphics driver have a nice feature matrix on it's webpage > > and I think that BTRFS perhaps should consi

Re: Is stability a joke?

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 14:30:51 CEST schrieb Waxhead: > > I think what would be a good next step would be to ask developers / users > > about feature stability and then update the wiki. If thats important to > > you, I suggest you invest some energy in doing that. And ask for help. > > Thi

Re: Is stability a joke?

2016-09-11 Thread Hugo Mills
On Sun, Sep 11, 2016 at 02:39:14PM +0200, Waxhead wrote: > Martin Steigerwald wrote: > >Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: > Thing is: This just seems to be when has a feature been implemented > matrix. > Not when it is considered to be stable. I t

Re: Is stability a joke?

2016-09-11 Thread Waxhead
Martin Steigerwald wrote: Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: The Nouveau graphics driver have a nice feature matrix on it's webpage and I think that BTRFS perhaps should consider doing something like that on it's official wiki as well BTRFS also has a feat

Re: Is stability a joke?

2016-09-11 Thread Waxhead
Martin Steigerwald wrote: Am Sonntag, 11. September 2016, 13:21:30 CEST schrieb Zoiled: Martin Steigerwald wrote: Am Sonntag, 11. September 2016, 10:55:21 CEST schrieb Waxhead: I have been following BTRFS for years and have recently been starting to use BTRFS more and more and as always BTRFS'

Re: Is stability a joke?

2016-09-11 Thread Zoiled
Martin Steigerwald wrote: Am Sonntag, 11. September 2016, 10:55:21 CEST schrieb Waxhead: I have been following BTRFS for years and have recently been starting to use BTRFS more and more and as always BTRFS' stability is a hot topic. Some says that BTRFS is a dead end research project while other

Re: Is stability a joke?

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 13:43:59 CEST schrieb Martin Steigerwald: > > >> The Nouveau graphics driver have a nice feature matrix on it's webpage > > >> and I think that BTRFS perhaps should consider doing something like > > >> that > > >> on it's official wiki as well > > > > > > BTRFS also

Re: Is stability a joke?

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 13:21:30 CEST schrieb Zoiled: > Martin Steigerwald wrote: > > Am Sonntag, 11. September 2016, 10:55:21 CEST schrieb Waxhead: > >> I have been following BTRFS for years and have recently been starting to > >> use BTRFS more and more and as always BTRFS' stability is a

Re: Is stability a joke?

2016-09-11 Thread Martin Steigerwald
Am Sonntag, 11. September 2016, 10:55:21 CEST schrieb Waxhead: > I have been following BTRFS for years and have recently been starting to > use BTRFS more and more and as always BTRFS' stability is a hot topic. > Some says that BTRFS is a dead end research project while others claim > the opposite.

Re: Is stability a joke?

2016-09-11 Thread Steven Haigh
This. So much this. After being burned badly by the documentation / wiki etc making RAID5/6 seem stable, I think its a joke how the features of BTRFS are promoted. A lot that is marked as 'Implemented' or 'Complete' is little more than a "In theory, it works" - but will eat your data. Having a s

Is stability a joke?

2016-09-11 Thread Waxhead
I have been following BTRFS for years and have recently been starting to use BTRFS more and more and as always BTRFS' stability is a hot topic. Some says that BTRFS is a dead end research project while others claim the opposite. Taking a quick glance at the wiki does not say much about what is