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

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

2017-08-18 Thread Nikolay Borisov
t1 >>>> Total Exclusive Set shared Filename >>>> 0.00B 0.00B 0.00B test1 >>>> # btrfs fi du -s test1.snap >>>> Total Exclusive Set shared Filename >>>> ERROR: cannot check space of 'test1.snap': I

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

2017-08-18 Thread Goffredo Baroncelli
0.00B test1 >>> # btrfs fi du -s test1.snap >>> Total Exclusive Set shared Filename >>> ERROR: cannot check space of 'test1.snap': Inappropriate ioctl for device >>> # >>> >> >> tanks for the test case. Now I was able to reproduc

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

2017-08-18 Thread Nikolay Borisov
st1.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 test1 >> # btrfs fi du -s test1.snap >> Total Exclusive Set shared Filename &

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

2017-08-17 Thread Goffredo Baroncelli
-s test1 > Total Exclusive Set shared Filename > 0.00B 0.00B 0.00B test1 > # btrfs fi du -s test1.snap > Total Exclusive Set shared Filename > ERROR: cannot check space of 'test1.snap': Inappropriate ioctl for device > # > tanks for the test cas

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

2017-08-17 Thread Chris Murphy
test1 # btrfs fi du -s test1.snap Total Exclusive Set shared Filename ERROR: cannot check space of 'test1.snap': Inappropriate ioctl for device # Pretty strace here: https://pastebin.com/raw/ibnha9Sx Ugly MUA strace here for the archive: # strace btrfs fi du -s test1.snap execve

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

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

2017-08-16 Thread Chris Murphy
es: >> > ~ # 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 ar

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

2017-08-16 Thread Piotr Szymaniak
lename > > ERROR: cannot check space of '/mnt/red/@backup/': Inappropriate ioctl for > > device > > > It's a bug, but I don't know if any devs are working on a fix yet. > > The problem is that the subvolume being snapshot, contains subvolumes. > The resulting snapshot

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 <szar...@grubelek.pl> 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 > de

btrfs fi du -s gives Inappropriate ioctl for device

2017-08-14 Thread Piotr Szymaniak
Exclusive Set shared Filename ERROR: cannot check space of '/mnt/red/@backup/': Inappropriate ioctl for device and it works for other subvols: ~ # btrfs fi du -s /mnt/red/\@svn/ Total Exclusive Set shared Filename 52.22GiB10.59MiB 4.13GiB /mnt/red/@svn/ ~ # btrfs fi du -s /mnt/red

btrfs fi du, cannot check space, inappropriate ioctl

2017-01-04 Thread Chris Murphy
[root@f25h mnt]# btrfs fi du -s home.20170104 Total Exclusive Set shared Filename ERROR: cannot check space of 'home.20170104': Inappropriate ioctl for device The command works on this snapshot's parent. kernel 4.8.15 btrfs-progs 4.8.5 What's interesting is the parent contains nested

Re: btrfs filesystem du - Failed to lookup root id - Inappropriate ioctl for device

2016-04-18 Thread Peter Becker
up root id - Inappropriate ioctl for device ERROR: cannot check space of '/media/RAID/owncloud/': Unknown error -1 $ sudo btrfs fi du /media/RAID/apps Total Exclusive Set shared Filename 500.00KiB 0.00B - /media/RAID//apps/Drive Snapshot 167.96MiB 0.00B - /media/

Re: btrfs filesystem du - Failed to lookup root id - Inappropriate ioctl for device

2016-03-28 Thread Alexander Fougner
2016-03-27 22:26 GMT+02:00 Peter Becker : > Hi i found the descriped error in if i execute du with btrfs-progs > v4.5 with kernel v4.5. > > floyd@nas ~ $ sudo btrfs version > btrfs-progs v4.5 > > floyd@nas ~ $ uname -r > 4.5.0-040500-generic > > floyd@nas ~ $ sudo btrfs fi

btrfs filesystem du - Failed to lookup root id - Inappropriate ioctl for device

2016-03-27 Thread Peter Becker
Hi i found the descriped error in if i execute du with btrfs-progs v4.5 with kernel v4.5. floyd@nas ~ $ sudo btrfs version btrfs-progs v4.5 floyd@nas ~ $ uname -r 4.5.0-040500-generic floyd@nas ~ $ sudo btrfs fi show Label: 'RAID' uuid: 3247737b-87f9-4e8c-8db3-2beed50fb104 Total devices 4 FS

Inappropriate ioctl for device

2015-07-25 Thread Mojtaba
space problem(DF shows free space but I can't create/update and sometimes delete files) So as the wiki suggest I try to issue a balance command to get the Inappropriate ioctl for device On some of my servers I can successfully use the command one however after that I get the same error System

Re: Inappropriate ioctl for device

2015-07-25 Thread Patrik Lundquist
On 25 July 2015 at 10:56, Mojtaba ker...@rp2.org wrote: System is debian wheezy or Jessie. This is Debian Jessie: root@s2:/# uname -a Linux s2 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux That's a way too old kernel to be running Btrfs on. You should be running on at least

Re: Inappropriate ioctl for device

2015-07-25 Thread Jim Murphy
the dependencies during the upgrade. You may want to choose initramfs-tools from backports rather than dracut which was offered as a replacement for initramfs-tools. [snip] I've successfully run balance on this system once a few days ago however after that I'm getting Inappropriate ioctl

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-04-13 Thread Anand Jain
Thanks Martin for helping with the data. Unfortunately no matter what I try I couldn't reproduce the Inappropriate ioctl for device But I got INVALD which is wrong as well. So I sent a patch for that. EIO is appropriate in this case. Next, Passing a devid to delete a device - yes it would

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-04-07 Thread Martin
On 06/04/15 14:32, Anand Jain wrote: btrfs fi show -d That gives: # btrfs fi show -d warning, device 3 is missing warning devid 3 not found already warning, device 3 is missing warning devid 3 not found already Label: 'btrfs_root' uuid: 92452e9a-2775-45c4-922c-f01b2afd51c2 Total

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-04-06 Thread Anand Jain
Martin, presumably kernel failed to read SB from disk /dev/sdf5, bit strange it saw 'Inappropriate ioctl for device', logically that don't explain. Curios to know what does 'btrfs fi show -d' say ? and output of blkid if you could. The situation here is not same as destroying the SB

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-04-01 Thread Anand Jain
btrfs device delete /dev/sdf5 /mnt/data2 ERROR: error removing the device '/dev/sdf5' - Inappropriate ioctl for device very strange. 'btrfs fi show -m' shows btrfs fs(s) that are mounted. - Anand -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-04-01 Thread Martin
On 01/04/15 08:06, Anand Jain wrote: btrfs device delete /dev/sdf5 /mnt/data2 ERROR: error removing the device '/dev/sdf5' - Inappropriate ioctl for device very strange. 'btrfs fi show -m' shows btrfs fs(s) that are mounted. Looks like my /dev/sdf isn't responding with anything useful

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-04-01 Thread Anand Jain
/sdf5 /mnt/data2 ERROR: error removing the device '/dev/sdf5' - Inappropriate ioctl for device very strange. 'btrfs fi show -m' shows btrfs fs(s) that are mounted. Looks like my /dev/sdf isn't responding with anything useful at all... A firmware crash?... (This is for a 256GB SSD.) # btrfs

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-04-01 Thread Martin
for reporting. Anand On 04/01/2015 06:54 PM, Martin wrote: On 01/04/15 08:06, Anand Jain wrote: btrfs device delete /dev/sdf5 /mnt/data2 ERROR: error removing the device '/dev/sdf5' - Inappropriate ioctl for device very strange. 'btrfs fi show -m' shows btrfs fs(s) that are mounted

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-03-31 Thread Martin
On 31/03/15 18:37, David Sterba wrote: On Mon, Mar 30, 2015 at 09:59:05PM +0100, Martin wrote: btrfs device delete /dev/sdf5 /mnt/data2 ERROR: error removing the device '/dev/sdf5' - Inappropriate ioctl for device Strange, that would mean that the ioctl number is not handled at all. I

Re: ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-03-31 Thread David Sterba
On Mon, Mar 30, 2015 at 09:59:05PM +0100, Martin wrote: btrfs device delete /dev/sdf5 /mnt/data2 ERROR: error removing the device '/dev/sdf5' - Inappropriate ioctl for device Strange, that would mean that the ioctl number is not handled at all. I haven't found any change in device delete

ERROR: error removing the device '/dev/sdXN' - Inappropriate ioctl for device

2015-03-30 Thread Martin
Help welcomed... Trying to delete one device from a btrfs raid1 across 3 devices gives for my example: btrfs device delete /dev/sdf5 /mnt/data2 ERROR: error removing the device '/dev/sdf5' - Inappropriate ioctl for device That part of the filesystem is: Label: 'btrfs_data2' uuid: 3aaee716

Inappropriate ioctl

2014-03-26 Thread Johannes Stemmler
- Inappropriate ioctl for device ERROR: get_df failed Inappropriate ioctl for device #mount /dev/sda6 on / type ext4 (rw,relatime,data=ordered) /dev/sda8 on /home type btrfs (rw,relatime,ssd,space_cache) A reinstallation of the btrfs-progs did not help. Is the system bad packaged by opensuse

Re: Inappropriate ioctl

2014-03-26 Thread Josef Bacik
filesystem df /dev/sda8 ERROR: couldn't get space info - Inappropriate ioctl for device ERROR: get_df failed Inappropriate ioctl for device #mount /dev/sda6 on / type ext4 (rw,relatime,data=ordered) /dev/sda8 on /home type btrfs (rw,relatime,ssd,space_cache) A reinstallation of the btrfs-progs did

Re: Inappropriate ioctl

2014-03-26 Thread Hugo Mills
. ERROR: couldn't get space info - Inappropriate ioctl for device ERROR: get_df failed Inappropriate ioctl for device #mount /dev/sda6 on / type ext4 (rw,relatime,data=ordered) /dev/sda8 on /home type btrfs (rw,relatime,ssd,space_cache) A reinstallation of the btrfs-progs did not help

btrfs send ioctl failed with -25: Inappropriate ioctl for device

2014-02-22 Thread Marc MERLIN
media_ro.20140222_11:12:53 ERROR: send ioctl failed with -25: Inappropriate ioctl for device Or more simply: gargamel:/mnt/btrfs_pool1# btrfs send media_ro.20140222_11:12:53 | less At subvol media_ro.20140222_11:12:53 ERROR: send ioctl failed with -25: Inappropriate ioctl for device gargamel:/mnt

Re: scrub: Inappropriate ioctl for device

2011-11-02 Thread David Sterba
On Tue, Nov 01, 2011 at 08:36:00PM +0100, Helmut Hullen wrote: The bundle uses the devices /dev/sdb1, /dev/sdc1 and /dev/sdg1, btrfs filesystem show shows these informations. Mounting doesn't work immediately; most times I have to run the mount command three times - strange. I observed

scrub: Inappropriate ioctl for device

2011-11-01 Thread Helmut Hullen
the error message ERROR: getting dev info for scrub failed: Inappropriate ioctl for device I don't use udev, ls -l /dev/sdb1 shows brw-r- 1 root disk 8, 17 29. Apr 1995 /dev/sdb1 Running the command via strace shows the last lines set_thread_area({entry_number:-1 - 6, base_addr

Re: scrub: Inappropriate ioctl for device

2011-11-01 Thread Ilya Dryomov
ERROR: getting dev info for scrub failed: Inappropriate ioctl for device Scrubber runs on a mounted filesystem. Thanks, Ilya -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: scrub: Inappropriate ioctl for device

2011-11-01 Thread Helmut Hullen
, without any error. There seems to be another problem. When I run btrfs scrub start -r /dev/sdb1 (or another of the three disks) then I only get the error message ERROR: getting dev info for scrub failed: Inappropriate ioctl for device Scrubber runs on a mounted filesystem. df

Re: 'ioctl:: Inappropriate ioctl for device' when trying to shrink partition

2011-01-13 Thread Brian Rogers
in: ioctl:: Inappropriate ioctl for device I believe you'll also get this same error message if there's not enough space to do the shrinking, so be aware of that. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo

'ioctl:: Inappropriate ioctl for device' when trying to shrink partition

2011-01-12 Thread Mikael Andersson
E.g. btrfsctl -r -4000m /dev/sda5 results in: ioctl:: Inappropriate ioctl for device Distribution: Ubuntu 10.10 Kernel: 2.6.35-22-generic According to the Synaptic Package manager, the version of btrfs-tools is 0.19+20100601-3 Other information that can be of interest: - I started Ubuntu

Re: 'ioctl:: Inappropriate ioctl for device' when trying to shrink partition

2011-01-12 Thread Leonidas Spyropoulos
from git and compile them yourself the version of btrfs-progs on LiveCD is old. Latest version I use for example is: v0.19-35-g1b444cd results in: ioctl:: Inappropriate ioctl for device Distribution: Ubuntu 10.10 Kernel: 2.6.35-22-generic According to the Synaptic Package manager