Re: Regression in btrfs: properly set the termination value of ctx->pos in readdir

2015-11-11 Thread Stefan Priebe - Profihost AG
Hi, the patch btrfs: properly set the termination value of ctx->pos in readdir introduces a regression to me. A lot of stuff runs in "endless" or long running loops. An example strace looks like this: msgsnd(0, {1, "\3\0\0\0\247\r\0\0g8\0\0\0\0\0\0\0\0\0\0\345<\1\0\0\0\0\0\35\0\0\0"...}, 56, 0)

Re: Regression in btrfs: properly set the termination value of ctx->pos in readdir

2015-11-11 Thread Holger Hoffstätte
On Wed, Nov 11, 2015 at 12:57 PM, Stefan Priebe - Profihost AG wrote: > Hi, > > the patch btrfs: properly set the termination value of ctx->pos in > readdir introduces a regression to me. > > A lot of stuff runs in "endless" or long running loops. Just tested this and can confirm something is off

Re: Process is blocked for more than 120 seconds

2015-11-11 Thread Dmitry Katsubo
On 2015-11-09 14:25, Austin S Hemmelgarn wrote: > On 2015-11-07 07:22, Dmitry Katsubo wrote: >> Hi everyone, >> >> I have noticed the following in the log. The system continues to run, >> but I am not sure for how long it will be stable. Should I start >> worrying? Thanks in advance for the opinion

Re: [RFCv3 00/12] xfstests: test the btrfs/xfs reflink/dedupe ioctls

2015-11-11 Thread Christoph Hellwig
On Mon, Nov 09, 2015 at 10:49:13AM -0800, Darrick J. Wong wrote: > I found a few more bugs in the kernel-side implementation, which might explain > that. I'm about to start working on making CoW less crappy, but I'll push all > the patches out to github. (I wasn't planning on patchbombing again u

Re: [PATCH v9 0/4] VFS: In-kernel copy system call

2015-11-11 Thread Anna Schumaker
On 11/10/2015 10:38 PM, Al Viro wrote: > On Tue, Nov 10, 2015 at 04:53:29PM -0500, Anna Schumaker wrote: >> Copy system calls came up during Plumbers a while ago, mostly because several >> filesystems (including NFS and XFS) are currently working on copy >> acceleration >> implementations. We hav

Re: How to properly and efficiently balance RAID6 after more drives are added?

2015-11-11 Thread Christian Rohmann
Sorry for the late reply to this list regarding this topic ... On 09/04/2015 01:04 PM, Duncan wrote: > And of course, only with 4.1 (nominally 3.19 but there were initial > problems) was raid6 mode fully code-complete and functional -- before > that, runtime worked, it calculated and wrote the p

Re: [PATCH v9 0/4] VFS: In-kernel copy system call

2015-11-11 Thread Eric Biggers
On Tue, Nov 10, 2015 at 04:53:30PM -0500, Anna Schumaker wrote: > out: > fdput(f_in); > out1: > fdput(f_out); The fdput()s are in the wrong order. fdget(f_in) is first at the beginning, so fdput(f_in) needs to be last at the end. > /* this could be r

Potential to loose data in case of disk failure

2015-11-11 Thread Jim Murphy
Hi all, What am I missing or misunderstanding? I have a newly purchased laptop I want/need to multi boot different OSs on. As a result after partitioning I have ended up with two partitions on each of the two internal drives(sda3, sda8, sdb3 and sdb8). FWIW, sda3 and sdb3 are the same size and

[RFCv3.1 00/11] xfstests: test the nfs/cifs/btrfs/xfs reflink/dedupe ioctls

2015-11-11 Thread Darrick J. Wong
Hi all, This is part of the third revision of an RFC for adding to XFS support for tracking reverse-mappings of physical blocks to file and metadata; and support for mapping multiple file logical blocks to the same physical block, more commonly known as reflinking. This patchset aims to make xfst

[PATCH 08/11] reflink: test error conditions due to bad inputs

2015-11-11 Thread Darrick J. Wong
Check that we can feed bad inputs to reflink and it'll reject them. Signed-off-by: Darrick J. Wong --- tests/generic/839 | 106 + tests/generic/839.out | 19 + tests/generic/846 | 106

[PATCH 10/11] reflink: test what happens when we hit resource limits

2015-11-11 Thread Darrick J. Wong
Add a few horrible opt-in stress tests to see what happens if we try to reflink the same block billions of times, and what happens if we run out of space while reflinking a file. Signed-off-by: Darrick J. Wong --- tests/generic/840 | 99 + te

[PATCH 09/11] xfs: test xfs-specific reflink pieces

2015-11-11 Thread Darrick J. Wong
Check that growfs and xfs_fsr still work properly on reflinked fses. Signed-off-by: Darrick J. Wong --- tests/xfs/800 | 79 tests/xfs/800.out |6 ++ tests/xfs/801 | 148 + tests/xfs/801.out | 27 +++

[PATCH 11/11] reflink: test that CoW writes fail when we're out of space

2015-11-11 Thread Darrick J. Wong
Ensure that copy-on-writing a reflinked file when there's no free disk space reflects the desired ENOSPC back to userspace during the write call. Tests the buffered IO, direct IO, and mmap write paths. Signed-off-by: Darrick J. Wong --- common/rc |2 - tests/generic/842 | 1

[PATCH 01/11] btrfs: move btrfs reflink tests to generic

2015-11-11 Thread Darrick J. Wong
Move the cp --reflink tests from btrfs/ to generic/ since xfs now supports that ioctl. Signed-off-by: Darrick J. Wong --- tests/btrfs/026 | 92 - tests/btrfs/026.out | 16 --- tests/btrfs/027 | 109 ---

[PATCH 04/11] reflink: test CoW behaviors of reflinked files

2015-11-11 Thread Darrick J. Wong
Ensure that CoW happens correctly with buffered, directio, and mmap writes. Signed-off-by: Darrick J. Wong --- tests/generic/808 | 152 + tests/generic/808.out | 19 ++ tests/generic/809 | 151 +++

[PATCH 03/11] reflink: basic tests of the reflink and dedupe ioctls

2015-11-11 Thread Darrick J. Wong
Test the operation of the btrfs (and now xfs) reflink and dedupe ioctls at various file offsets and with matching and nonmatching files. Signed-off-by: Darrick J. Wong --- tests/generic/803 | 92 +++ tests/generic/803.out |8 ++ tests/generic/804 | 93

[PATCH 06/11] reflink: concurrent operations tests

2015-11-11 Thread Darrick J. Wong
Make sure that running reflink ops while other IO is ongoing doesn't break the filesystem. Signed-off-by: Darrick J. Wong --- tests/generic/821 | 97 + tests/generic/821.out |6 +++ tests/generic/822 | 97 +++

[PATCH 05/11] reflink: test the various fallocate modes

2015-11-11 Thread Darrick J. Wong
Check that the variants of fallocate (allocate, punch, zero range, collapse range, insert range) do the right thing when they're run against a range of reflinked blocks. Signed-off-by: Darrick J. Wong --- tests/generic/811 | 142 + tests/gener

[PATCH 07/11] reflink: test accuracy of free block counts

2015-11-11 Thread Darrick J. Wong
Check that the free block counts seem to be handled correctly in the reflink operation and subsequent attempts to rewrite reflinked copies. Signed-off-by: Darrick J. Wong --- tests/generic/830 | 78 ++ tests/generic/830.out |4 ++ tests/generic/831 | 9

[PATCH 02/11] generic/80[0-2]: support xfs in addition to btrfs

2015-11-11 Thread Darrick J. Wong
Modify the reflink tests to support xfs. Signed-off-by: Darrick J. Wong --- common/rc | 42 ++-- common/reflink| 179 + tests/btrfs/029 |1 tests/btrfs/031 |1 tests/btrfs/108 |1 tests/btrfs/109 |

Re: Potential to loose data in case of disk failure

2015-11-11 Thread Sean Greenslade
On Wed, Nov 11, 2015 at 11:30:57AM -0600, Jim Murphy wrote: > Hi all, > > What am I missing or misunderstanding? I have a newly > purchased laptop I want/need to multi boot different OSs > on. As a result after partitioning I have ended up with two > partitions on each of the two internal drives

illegal snapshot, cannot be deleted

2015-11-11 Thread Vedran Vucic
Hello, I use OpenSuse 13.2 on my Toshiba Satellite laptop. I noticed that I run out of disk space, checked documentation and I realized that there were many snapshots. I used Yast Snapper to delete snapshots. I noticed that one snapshot with number 748 could not be deleted. I entered terminal an

Re: Potential to loose data in case of disk failure

2015-11-11 Thread Chris Murphy
On Wed, Nov 11, 2015 at 12:30 PM, Jim Murphy wrote: > Hi all, > > What am I missing or misunderstanding? I have a newly > purchased laptop I want/need to multi boot different OSs > on. As a result after partitioning I have ended up with two > partitions on each of the two internal drives(sda3, s

Re: [RFCv3 00/12] xfstests: test the btrfs/xfs reflink/dedupe ioctls

2015-11-11 Thread Dave Chinner
On Mon, Nov 09, 2015 at 10:49:13AM -0800, Darrick J. Wong wrote: > On Sun, Nov 08, 2015 at 11:59:26PM -0800, Christoph Hellwig wrote: > > On Tue, Oct 06, 2015 at 10:12:57PM -0700, Darrick J. Wong wrote: > > > * I don't have any interesting NFS/CIFS setups for test. :( > > > > I have a banrch with

Re: [GIT PULL] Fujitsu for 4.4

2015-11-11 Thread Chris Mason
On Mon, Nov 09, 2015 at 06:27:26PM +0800, Zhao Lei wrote: > Hi Chris, > > This is collection of some bug fix and cleanup from fujitsu against btrfs in > v4.3, > the main patch is these 2: > Fix lost-data-profile caused by auto removing bg > Fix lost-data-profile caused by balance bg > It can so

Re: [PATCH 00/15] btrfs: Hot spare and Auto replace

2015-11-11 Thread Qu Wenruo
Hi Anand, Nice work. But I have some small questions about it. Anand Jain wrote on 2015/11/09 18:56 +0800: These set of patches provides btrfs hot spare and auto replace support for you review and comments. First, here below are the simple example steps to configure the same: Add a spare devi

Re: How to properly and efficiently balance RAID6 after more drives are added?

2015-11-11 Thread Duncan
Christian Rohmann posted on Wed, 11 Nov 2015 15:17:19 +0100 as excerpted: > Sorry for the late reply to this list regarding this topic ... > > On 09/04/2015 01:04 PM, Duncan wrote: >> And of course, only with 4.1 (nominally 3.19 but there were initial >> problems) was raid6 mode fully code-comple

Re: Potential to loose data in case of disk failure

2015-11-11 Thread Duncan
Chris Murphy posted on Wed, 11 Nov 2015 18:13:22 -0500 as excerpted: > On Wed, Nov 11, 2015 at 12:30 PM, Jim Murphy > wrote: >> Hi all, >> >> What am I missing or misunderstanding? I have a newly purchased laptop >> I want/need to multi boot different OSs on. As a result after >> partitioning I

Re: [PATCH 00/15] btrfs: Hot spare and Auto replace

2015-11-11 Thread Duncan
Qu Wenruo posted on Thu, 12 Nov 2015 10:15:09 +0800 as excerpted: > Anand Jain wrote on 2015/11/09 18:56 +0800: >> These set of patches provides btrfs hot spare and auto replace support >> for you review and comments. >> >> First, here below are the simple example steps to configure the same: >> >