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