Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-18 Thread Piotr Szymaniak
On Thu, Aug 17, 2017 at 10:59:33PM +0200, Goffredo Baroncelli wrote: > Patches will follow shortly With your patches applied: ~ # btrfs fi du -s /mnt/red/\@backup/ /mnt/red/\@backup/.snapshot/monthly_2017-08-01_05\:30\:01/ /mnt/red/\@svn/ /mnt/red/\@svn/.snapshot/weekly_2017-08-05_04\:20\:02/

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-18 Thread Goffredo Baroncelli
On 08/18/2017 09:12 AM, Nikolay Borisov wrote: > > > On 18.08.2017 10:09, Goffredo Baroncelli wrote: >> On 08/18/2017 08:34 AM, Nikolay Borisov wrote: [...] >>> It would be awesome if you manage to introduce xfstests for this case >> >> I am not sure if this is the right thing to do: the bugs are

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-18 Thread Nikolay Borisov
On 18.08.2017 10:09, Goffredo Baroncelli wrote: > On 08/18/2017 08:34 AM, Nikolay Borisov wrote: >> >> >> On 17.08.2017 23:59, Goffredo Baroncelli wrote: >>> Hi, >>> >>> On 08/17/2017 08:43 PM, Chris Murphy wrote: # btrfs sub create test1 Create subvolume './test1' # btrfs sub crea

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-18 Thread Goffredo Baroncelli
On 08/18/2017 08:34 AM, Nikolay Borisov wrote: > > > On 17.08.2017 23:59, Goffredo Baroncelli wrote: >> Hi, >> >> On 08/17/2017 08:43 PM, Chris Murphy wrote: >>> # btrfs sub create test1 >>> Create subvolume './test1' >>> # btrfs sub create test1/test2 >>> Create subvolume 'test1/test2' >>> # btr

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-17 Thread Nikolay Borisov
On 17.08.2017 23:59, Goffredo Baroncelli wrote: > Hi, > > On 08/17/2017 08:43 PM, Chris Murphy wrote: >> # btrfs sub create test1 >> Create subvolume './test1' >> # btrfs sub create test1/test2 >> Create subvolume 'test1/test2' >> # btrfs sub snap test1 test1.snap >> Create a snapshot of 'test1'

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-17 Thread Goffredo Baroncelli
Hi, On 08/17/2017 08:43 PM, Chris Murphy wrote: > # btrfs sub create test1 > Create subvolume './test1' > # btrfs sub create test1/test2 > Create subvolume 'test1/test2' > # btrfs sub snap test1 test1.snap > Create a snapshot of 'test1' in './test1.snap' > # btrfs fi du -s test1 > Total Exc

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-17 Thread Chris Murphy
# btrfs sub create test1 Create subvolume './test1' # btrfs sub create test1/test2 Create subvolume 'test1/test2' # btrfs sub snap test1 test1.snap Create a snapshot of 'test1' in './test1.snap' # btrfs fi du -s test1 Total Exclusive Set shared Filename 0.00B 0.00B 0.00B

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-17 Thread Goffredo Baroncelli
Hi, On 08/15/2017 12:57 AM, Piotr Szymaniak wrote: > and... some issues: > ~ # btrfs fi du -s /mnt/red/\@backup/ > Total Exclusive Set shared Filename > ERROR: cannot check space of '/mnt/red/@backup/': Inappropriate ioctl for > device could you share the output of strace btrfs fi du

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-16 Thread Chris Murphy
On Wed, Aug 16, 2017 at 3:27 AM, Piotr Szymaniak wrote: > On Mon, Aug 14, 2017 at 05:40:30PM -0600, Chris Murphy wrote: >> On Mon, Aug 14, 2017 at 4:57 PM, Piotr Szymaniak wrote: >> >> > >> > and... some issues: >> > ~ # btrfs fi du -s /mnt/red/\@backup/ >> > Total Exclusive Set shared F

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-16 Thread Piotr Szymaniak
On Mon, Aug 14, 2017 at 05:40:30PM -0600, Chris Murphy wrote: > On Mon, Aug 14, 2017 at 4:57 PM, Piotr Szymaniak wrote: > > > > > and... some issues: > > ~ # btrfs fi du -s /mnt/red/\@backup/ > > Total Exclusive Set shared Filename > > ERROR: cannot check space of '/mnt/red/@backup/': In

Re: btrfs fi du -s gives Inappropriate ioctl for device

2017-08-14 Thread Chris Murphy
On Mon, Aug 14, 2017 at 4:57 PM, Piotr Szymaniak wrote: > > and... some issues: > ~ # btrfs fi du -s /mnt/red/\@backup/ > Total Exclusive Set shared Filename > ERROR: cannot check space of '/mnt/red/@backup/': Inappropriate ioctl for > device It's a bug, but I don't know if any devs a

btrfs fi du -s gives Inappropriate ioctl for device

2017-08-14 Thread Piotr Szymaniak
Hi list, I have some weird issue. So, I have btrfs fs and some subvols, like that: ~ # btrfs sub list /mnt/red/ ID 260 gen 827956 top level 5 path @home ID 261 gen 827926 top level 5 path @backup ID 645 gen 827911 top level 5 path @svn *snip* and some snapshots on those subvols: *snip* ID 2501 g