hi,
On 10/13/2016 01:20 AM, Josef Bacik wrote:
On 10/12/2016 05:03 AM, Wang Xiaoguang wrote:
Since commit b02441999efcc6152b87cd58e7970bb7843f76cf, we don't wait all
ordered extents, but I run into some enospc errors when doing large file
create and delete tests, it's because shrink_delalloc()
On Wed, Oct 12, 2016 at 05:10:18PM -0400, Zygo Blaxell wrote:
> On Wed, Oct 12, 2016 at 09:55:28PM +0200, Adam Borowski wrote:
> > On Wed, Oct 12, 2016 at 01:19:37PM -0400, Zygo Blaxell wrote:
> > > I had been thinking that we could inject "plug" extents to fill up
> > > RAID5 stripes.
> > Your
I am using Btrfs RAID5 with 10x4T disks.
Around 2 weeks ago, one disk of it was taking long time when read and write.
So, I tried replace the disk with new disk by replace command ( btrfs replace
... ).
But, it failed. So, I added new disk into the array by add command and then
deleted the bad
Indeed this just make the behavior similar to xfs when process has
fatal signals pending, and it'll make fstests/generic/298 happy.
Signed-off-by: Wang Xiaoguang
---
fs/btrfs/ioctl.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/fs/btrfs/ioctl.c
At 10/13/2016 01:19 AM, Zygo Blaxell wrote:
On Wed, Oct 12, 2016 at 01:48:58PM +0800, Qu Wenruo wrote:
btrfs also doesn't avoid the raid5 write hole properly. After a crash,
a btrfs filesystem (like mdadm raid[56]) _must_ be scrubbed (resynced)
to reconstruct any parity that was damaged by
On Wed, Oct 12, 2016 at 10:23:52PM +0100, Filipe Manana wrote:
> On Tue, Sep 6, 2016 at 10:51 PM, Liu Bo wrote:
> > Hi Filipe,
> >
> > On Mon, Sep 05, 2016 at 04:28:09PM +0100, Filipe Manana wrote:
> >> On Fri, Sep 2, 2016 at 8:35 PM, Liu Bo wrote:
>
On 10/13/2016 01:47 AM, Sean Greenslade wrote:
> On Thu, Oct 13, 2016 at 01:14:51AM +0200, Hans van Kranenburg wrote:
>> On 10/13/2016 12:29 AM, Sean Greenslade wrote:
>>> And while we're at it, what are the failure modes for incremental sends?
>>> Will it throw an error if the parents don't
On Thu, Oct 13, 2016 at 01:14:51AM +0200, Hans van Kranenburg wrote:
> On 10/13/2016 12:29 AM, Sean Greenslade wrote:
> > Hi, all. I have a question about a backup plan I have involving
> > send/receive. As far as I can tell, there's no way to to resume a send
> > that has been interrupted. In
On 10/13/2016 12:29 AM, Sean Greenslade wrote:
> Hi, all. I have a question about a backup plan I have involving
> send/receive. As far as I can tell, there's no way to to resume a send
> that has been interrupted. In this case, my interruption comes from an
> overbearing firewall that doesn't
On Wed, Oct 12, 2016 at 06:29:55PM -0400, Sean Greenslade wrote:
> Hi, all. I have a question about a backup plan I have involving
> send/receive. As far as I can tell, there's no way to to resume a send
> that has been interrupted. In this case, my interruption comes from an
> overbearing
On Wed, Oct 12, 2016 at 4:29 PM, Sean Greenslade
wrote:
> Hi, all. I have a question about a backup plan I have involving
> send/receive. As far as I can tell, there's no way to to resume a send
> that has been interrupted. In this case, my interruption comes from an
>
Hi, all. I have a question about a backup plan I have involving
send/receive. As far as I can tell, there's no way to to resume a send
that has been interrupted. In this case, my interruption comes from an
overbearing firewall that doesn't like long-lived connections. I'm
trying to do the initial
On Wed, Oct 12, 2016 at 11:59 AM, Jason D. Michaelson
wrote:
> With the bad disc in place:
>
> root@castor:~/btrfs-progs# ./btrfs restore -t 4844272943104 -D /dev/sda
> /dev/null
> parent transid verify failed on 4844272943104 wanted 161562 found 161476
> parent
On Tue, Sep 6, 2016 at 10:51 PM, Liu Bo wrote:
> Hi Filipe,
>
> On Mon, Sep 05, 2016 at 04:28:09PM +0100, Filipe Manana wrote:
>> On Fri, Sep 2, 2016 at 8:35 PM, Liu Bo wrote:
>> > This can only happen with CONFIG_BTRFS_FS_CHECK_INTEGRITY=y.
>> >
>> >
On Wed, Oct 12, 2016 at 09:55:28PM +0200, Adam Borowski wrote:
> On Wed, Oct 12, 2016 at 01:19:37PM -0400, Zygo Blaxell wrote:
> > On Wed, Oct 12, 2016 at 01:48:58PM +0800, Qu Wenruo wrote:
> > > In fact, the _concept_ to solve such RMW behavior is quite simple:
> > >
> > > Make sector size equal
On Wed, Oct 12, 2016 at 11:19 AM, Zygo Blaxell
wrote:
> Degraded RAID5 is not RAID0. RAID5 has strict constraints that RAID0
> does not. The way a RAID5 implementation behaves in degraded mode is
> the thing that usually matters after a disk fails.
Is there
On Thu, Oct 13, 2016 at 12:33:31AM +0500, Roman Mamedov wrote:
> On Wed, 12 Oct 2016 15:19:16 -0400
> Zygo Blaxell wrote:
>
> > I'm not even sure btrfs does this--I haven't checked precisely what
> > it does in dup mode. It could send both copies of metadata to
On Wed, Oct 12, 2016 at 01:19:37PM -0400, Zygo Blaxell wrote:
> On Wed, Oct 12, 2016 at 01:48:58PM +0800, Qu Wenruo wrote:
> > In fact, the _concept_ to solve such RMW behavior is quite simple:
> >
> > Make sector size equal to stripe length. (Or vice versa if you like)
> >
> > Although the
On Wed, 12 Oct 2016 15:19:16 -0400
Zygo Blaxell wrote:
> I'm not even sure btrfs does this--I haven't checked precisely what
> it does in dup mode. It could send both copies of metadata to the
> disks with a single barrier to separate both metadata updates from
>
On Wed, Oct 12, 2016 at 01:31:41PM -0400, Zygo Blaxell wrote:
> On Wed, Oct 12, 2016 at 12:25:51PM +0500, Roman Mamedov wrote:
> > Zygo Blaxell wrote:
> >
> > > A btrfs -dsingle -mdup array on a mdadm raid[56] device might have a
> > > snowball's chance in hell of
On Wed, Oct 12, 2016 at 05:06:55PM +0200, David Sterba wrote:
> On Mon, May 16, 2016 at 10:32:48AM +0200, David Sterba wrote:
> > On Sun, May 15, 2016 at 04:19:28PM +0200, Holger Hoffstätte wrote:
> > > On 05/14/16 02:06, Liu Bo wrote:
> > > > This BUG() has been triggered by a fuzz testing image,
> -Original Message-
> From: ch...@colorremedies.com [mailto:ch...@colorremedies.com] On
> Behalf Of Chris Murphy
> Sent: Tuesday, October 11, 2016 3:38 PM
> To: Jason D. Michaelson; Btrfs BTRFS
> Cc: Chris Murphy
> Subject: Re: raid6 file system in a bad state
>
> readding btrfs
>
>
On Wed, Oct 12, 2016 at 12:25:51PM +0500, Roman Mamedov wrote:
> Zygo Blaxell wrote:
>
> > A btrfs -dsingle -mdup array on a mdadm raid[56] device might have a
> > snowball's chance in hell of surviving a disk failure on a live array
> > with only data losses.
On Wed, Oct 12, 2016 at 10:01:27PM +0800, Qu Wenruo wrote:
>
>
> On 10/12/2016 09:58 PM, Abhay Sachan wrote:
> > Hi,
> > I tried building latest btrfs progs on CentOS 6, "./configure" failed
> > with the error:
> >
> > checking for FIEMAP_EXTENT_SHARED defined in linux/fiemap.h... no
> >
On 10/12/2016 05:03 AM, Wang Xiaoguang wrote:
Since commit b02441999efcc6152b87cd58e7970bb7843f76cf, we don't wait all
ordered extents, but I run into some enospc errors when doing large file
create and delete tests, it's because shrink_delalloc() does not write
enough delalloc bytes and wait
On 10/12/2016 05:03 AM, Wang Xiaoguang wrote:
In shrink_delalloc(), if can_overcommit() returns true, shrink_delalloc()
will give up shrinking delalloc bytes, in this case we should check whether
some tickcts' requests can overcommit, if some can, we can satisfy them
timely and directly.
On Wed, Oct 12, 2016 at 01:48:58PM +0800, Qu Wenruo wrote:
> >btrfs also doesn't avoid the raid5 write hole properly. After a crash,
> >a btrfs filesystem (like mdadm raid[56]) _must_ be scrubbed (resynced)
> >to reconstruct any parity that was damaged by an incomplete data stripe
> >update.
> >
On 10/12/2016 03:27 AM, Wang Xiaoguang wrote:
hi,
On 10/07/2016 09:16 PM, Josef Bacik wrote:
On 09/21/2016 02:59 AM, Wang Xiaoguang wrote:
In flush_space()->shrink_delalloc(), if can_overcommit() returns true,
though no bytes added to space_info, we still may satisfy some requests.
On Wed, Oct 12, 2016 at 06:40:09PM +0200, David Sterba wrote:
> It seems to be long time unused, since 2008 and
> 6885f308b5570 ("Btrfs: Misc 2.6.25 updates").
>
> Propagating the removal touches some code but has no functional effect.
>
> Signed-off-by: David Sterba
Please
It seems to be long time unused, since 2008 and
6885f308b5570 ("Btrfs: Misc 2.6.25 updates").
Propagating the removal touches some code but has no functional effect.
Signed-off-by: David Sterba
---
fs/btrfs/extent_io.c | 39 ---
On Wed, Mar 16, 2016 at 08:32:35AM +0800, Anand Jain wrote:
> For the matter of completeness we need to check if the device
> being scanned has features that are known to the kernel. As of
> now if it doesn't - the mount will fails, then what is the point
> in having those devices added to the
On Mon, May 16, 2016 at 10:32:48AM +0200, David Sterba wrote:
> On Sun, May 15, 2016 at 04:19:28PM +0200, Holger Hoffstätte wrote:
> > On 05/14/16 02:06, Liu Bo wrote:
> > > This BUG() has been triggered by a fuzz testing image, but in fact
> > > btrfs can handle this gracefully by returning -EIO.
On Thu, Jul 07, 2016 at 10:11:59AM +0800, Qu Wenruo wrote:
> Btrfs_read_block_groups() function is the most time consuming function
> if the fs is large and filled with small extents.
>
> For a btrfs filled with 100,000,000 16K sized files, mount the fs takes
> about 10 seconds.
>
> While ftrace
On 10/12/16 9:45 AM, Abhay Sachan wrote:
> Hi Qu,
> I am running latest 4.8.1, which I compiled on the machine itself.
You likely still have the fiemap.h from Centos' kernel-headers
rpm, which is from an older kernel and does not define it.
-Eric
> Linux vm88 4.8.1 #1 SMP Thu Oct 13 10:33:08
On Wed, Oct 12, 2016 at 09:47:17AM -0400, Dave Jones wrote:
> On Tue, Oct 11, 2016 at 11:54:09AM -0400, Chris Mason wrote:
> >
> >
> > On 10/11/2016 10:45 AM, Dave Jones wrote:
> > > This is from Linus' current tree, with Al's iovec fixups on top.
> > >
> > > [ cut here
Hi Qu,
I am running latest 4.8.1, which I compiled on the machine itself.
Linux vm88 4.8.1 #1 SMP Thu Oct 13 10:33:08 IST 2016 x86_64 x86_64
x86_64 GNU/Linux
Regards,
Abhay
On Wed, Oct 12, 2016 at 7:31 PM, Qu Wenruo wrote:
>
>
> On 10/12/2016 09:58 PM, Abhay Sachan
On 10/12/2016 10:40 AM, Dave Jones wrote:
On Wed, Oct 12, 2016 at 09:47:17AM -0400, Dave Jones wrote:
> On Tue, Oct 11, 2016 at 11:54:09AM -0400, Chris Mason wrote:
> >
> >
> > On 10/11/2016 10:45 AM, Dave Jones wrote:
> > > This is from Linus' current tree, with Al's iovec fixups on
On Mon, Sep 19, 2016 at 07:22:28PM +0200, David Sterba wrote:
> On Sun, Sep 18, 2016 at 12:10:34AM +0100, Domagoj Tršan wrote:
> > csum member of struct btrfs_super_block has array type of u8. It makes sense
> > that function btrfs_csum_final should be also declared to accept u8 *. I
> > changed
On 10/12/2016 09:58 PM, Abhay Sachan wrote:
Hi,
I tried building latest btrfs progs on CentOS 6, "./configure" failed
with the error:
checking for FIEMAP_EXTENT_SHARED defined in linux/fiemap.h... no
configure: error: no definition of FIEMAP_EXTENT_SHARED found
Any ideas what am I lacking in
Hi,
I tried building latest btrfs progs on CentOS 6, "./configure" failed
with the error:
checking for FIEMAP_EXTENT_SHARED defined in linux/fiemap.h... no
configure: error: no definition of FIEMAP_EXTENT_SHARED found
Any ideas what am I lacking in the system?
Regards,
Abhay
--
To unsubscribe
On Tue, Oct 11, 2016 at 11:54:09AM -0400, Chris Mason wrote:
>
>
> On 10/11/2016 10:45 AM, Dave Jones wrote:
> > This is from Linus' current tree, with Al's iovec fixups on top.
> >
> > [ cut here ]
> > WARNING: CPU: 1 PID: 3673 at lib/list_debug.c:33
Hi,
btrfs-progs 4.8.1 have been released, with a short delay than estimated. This
is a bugfix release, namely the build has been fixed (32bit and no-backtrace).
Tarballs: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/
Git:
On Wed, Oct 12, 2016 at 09:59:03AM +0100, Filipe Manana wrote:
> On Wed, Oct 12, 2016 at 3:28 AM, Zygo Blaxell
> wrote:
> > rsync -S causes a large number of small writes separated by small seeks
> > to form sparse holes in files that contain runs of zero bytes.
Hi,
On Sat, Sep 10, 2016 at 08:59:21AM +0200, Grdykopląs Namorzyn wrote:
> Hello,
>
> While my btrfs mounts ok on several instances of my home OpenElec, but
> on ArchLinux it fails with:
>
> [174828.954975] BTRFS error (device sdc): super_num_devices 3 mismatch
> with num_devices 2 found here
On 2016-10-11 18:10, Nicholas D Steeves wrote:
On Mon, Oct 10, 2016 at 08:07:53AM -0400, Austin S. Hemmelgarn wrote:
On 2016-10-09 19:12, Charles Zeitler wrote:
Is there any advantage to using NAS drives
under RAID levels, as oppposed to regular
'desktop' drives for BTRFS?
[...]
So, as for
On Wed, Oct 12, 2016 at 9:12 AM, robbieko wrote:
> From: Robbie Ko
>
> There a some case similar as before.
As before what?
Each change log should be complete and the reader is not supposed to
guess what's the previous patch or commit this is
On Wed, Oct 12, 2016 at 9:12 AM, robbieko wrote:
> From: Robbie Ko
>
> There a some case similar as before.
As before what?
Each change log should be complete and the reader is not supposed to
guess what's the previous patch or commit this is
On Wed, Oct 12, 2016 at 3:28 AM, Zygo Blaxell
wrote:
> rsync -S causes a large number of small writes separated by small seeks
> to form sparse holes in files that contain runs of zero bytes. Rarely,
> this can lead btrfs to write a file with a compressed inline
On Tue, Oct 11, 2016 at 9:58 AM, robbieko wrote:
> Hi Filipe:
>
> because btrfs_calc_trunc_metadata_size is reserved leafsize + nodesize * (8
> - 1)
> assume leafsize is the same as nodesize
The leaf size is always the same as the node size. There are no exceptions.
> ,
On Wed, Oct 12, 2016 at 9:12 AM, robbieko wrote:
> From: Robbie Ko
>
> There a one case for old_gen waiting_for_rm,
> but new_gen use get_cur_path with the same inode.
>
> Example:
> Parent snapshot:
> | dir258/ (ino 258, dir)
>
On Wed, Oct 12, 2016 at 9:12 AM, robbieko wrote:
> From: Robbie Ko
>
> When root dir item change, don't skip will_overwrite_ref,
> because root inode always exist.
What do you mean by root dir item change? You mean indoe 256 changed,
how did it
On Tue, Oct 11, 2016 at 8:47 AM, robbieko wrote:
> Hi Filipe:
>
> why did you replace the continue statement with a break statement:
> because we released ahead of the path, it can not continue to use,
> need to jump out, and then go to again.
Seeing the code and not only
On Wed, Oct 12, 2016 at 9:12 AM, robbieko wrote:
> From: Robbie Ko
>
> There a some case similar as before.
As before what?
Each change log should be complete and the reader is not supposed to
guess what's the previous patch or commit this is
Since commit b02441999efcc6152b87cd58e7970bb7843f76cf, we don't wait all
ordered extents, but I run into some enospc errors when doing large file
create and delete tests, it's because shrink_delalloc() does not write
enough delalloc bytes and wait them finished:
From: Miao Xie
In shrink_delalloc(), if can_overcommit() returns true, shrink_delalloc()
will give up shrinking delalloc bytes, in this case we should check whether
some tickcts' requests can overcommit, if some can, we can satisfy them
timely and directly.
Signed-off-by: Wang Xiaoguang
We cast 0 to a u8 but then because of type promotion, it's immediately
cast to int back to int before we do a bitwise negate. The cast doesn't
matter in this case, the code works as intended. It causes a static
checker warning though so let's remove it.
Signed-off-by: Dan Carpenter
hi,
On 10/07/2016 09:16 PM, Josef Bacik wrote:
On 09/21/2016 02:59 AM, Wang Xiaoguang wrote:
In flush_space()->shrink_delalloc(), if can_overcommit() returns true,
though no bytes added to space_info, we still may satisfy some requests.
Signed-off-by: Wang Xiaoguang
From: Robbie Ko
There a some case similar as before.
add check parent generation in the did_overwrite_ref.
Signed-off-by: Robbie Ko
---
fs/btrfs/send.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/fs/btrfs/send.c
From: Robbie Ko
There a one case for old_gen waiting_for_rm,
but new_gen use get_cur_path with the same inode.
Example:
Parent snapshot:
| dir258/ (ino 258, dir)
|--- dir257/ (ino 257, dir)
| dir259/ (ino 259, dir)
Send snapshot:
|
From: Robbie Ko
There a some case similar as before.
add compare generation with dir items,
and waiting_dir_move in the can_rmdir.
Signed-off-by: Robbie Ko
---
fs/btrfs/send.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
From: Robbie Ko
There a some case similar as before.
add check generation if has waiting_dir_move in the will_overwrite_ref
Signed-off-by: Robbie Ko
---
fs/btrfs/send.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
From: Robbie Ko
When root dir item change, don't skip will_overwrite_ref,
because root inode always exist.
Example:
Parent snapshot:
| a1/ (ino 257, dir)
| a2/ (ino 258, dir)
Send snapshot:
| a2 (ino 257, file)
ERROR: rename o257-29-0 -> a2 failed: Is a
From: Robbie Ko
Patch for fix btrfs incremental send.
These patches base on v4.8.0-rc8
Robbie Ko (5):
Btrfs: incremental send, fix don't skip root inode in overwrite_ref
Btrfs: incremental send, add gen for is_waiting_for_rm when some
corner case
Btrfs:
On Tue, 11 Oct 2016 17:58:22 -0600
Chris Murphy wrote:
> But consider the identical scenario with md or LVM raid5, or any
> conventional hardware raid5. A scrub check simply reports a mismatch.
> It's unknown whether data or parity is bad, so the bad data strip is
>
Missing device is the _only_ thing the current design handles.
Right. below patches in the ML added two more device states
offline and failed. It is tested with raid1.
[PATCH 11/13] btrfs: introduce device dynamic state transition to
offline or failed
[PATCH 12/13] btrfs: check device
65 matches
Mail list logo