Re: [PATCH 2/2] libblkid: reopen floppy without O_NONBLOCK

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

 



On Fri, Jan 21, 2022 at 03:13:00PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> 21.01.2022 13:18, Karel Zak wrote:
> >   I'd like to call stat() before FDGETFDCSTAT ioctl to make sure that
> >   the file descriptor is really block-device etc. (libmount supports
> >   regular files too)
> > 
> 
> Sounds good. I see, fstat() is called in blkid_probe_set_device(),
> so you just need to move your code below fstat() call.

That's the plan. Updated in git tree.

  Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux