Re: The XFS_IOC_FSGEOMETRY ioctl doesn't like fds that are opened O_PATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Biggers <ebiggers3@xxxxxxxxx> wrote:

> Also, ioctl() with an O_PATH file descriptor always fails with EBADF because
> sys_ioctl() uses fdget() rather than fdget_raw().  The filesystem isn't
> involved at all.  This is intentional, I believe.

Yeah.  Apparently so, though some ioctls might make sense if they're asking
about the filesystem.

Anyway, I need to fix xfs_io for that now too if I'm going to use that.  I
wonder what xfs_io needs the geometry for.

I'm getting the impression xfs_io isn't really the tool I should be using for
this.

Dvid



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux