[PATCH] readdir() with mount point dentry, return mount point INO

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jun 14 10:35:00 GMT 2017


On Jun 13 11:12, Joe Lowe wrote:
> 
> This patch fixes a minor compatibility issue w/ cygwin mount point handling
> in readdir(), compared to equivalent behavior of Linux and MacOS.
> dentry.d_ino should indicate the INO of the mount point itself, not the
> target volume root folder.
> 
> Changed return type from readdir_check_reparse_point to uint8_t, to avoid
> unnecessarily being implicitly cast to and from a signed int.
> 	
> Renamed a related local variable "attr" to "oattr" that was eclipsing a
> member variable with the same name.

Pushed.  Can you please send patches in `git format-patch' format?  Those
are nicer to apply.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20170614/37cacc34/attachment.sig>


More information about the Cygwin-patches mailing list