[LTP] [PATCH v3] fcntl/fcntl32.c: add F_SETLEASE and F_WRLCK argument test
Cyril Hrubis
chrubis@suse.cz
Mon Oct 12 19:43:16 CEST 2015
Hi!
> > Same as the second one. I would preffer figuring out that the fcntl() is
> > unsupported by actually trying to use it.
> >
>
> It will return EAGAIN when we actually use it, I don't think it's a reasonable errno,
> since on ramfs or tmpfs, when opening or creating a new file, the dentry->d_count
> will get an extra count to be 2 but not 1. Please have a look at the following link:
> http://www.gossamer-threads.com/lists/linux/kernel/913113
Hmm, so the kernel thinks that the file has been opened two times
allready and returns EAGAIN when we try the lock. It may be better to
just to skip these filesystems as you did then, since it's unlikely that
somebody will fix this in kernel.
--
Cyril Hrubis
chrubis@suse.cz
More information about the Ltp
mailing list