[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    stat(x) & AT_NO_AUTOMOUNT
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2020-11-28 18:45:12
Message-ID: 3087000.44csPzL39Z () thyrus
[Download RAW message or body]


Hi,

while debugging failed test suites in gdk-pixbuf, I noticed the
following:
- newer glib versions can use statx
- glib provides a statx emulation in case statx is not provided
  natively, falling back to the usual stat (with less information
  available)
- the statx emulation allows few AT_* flags, namely:
  AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW
- AT_NO_AUTOMOUNT is not handled in the hurd bits (see __hurd_at_flags
  and __file_name_lookup_at)
- the glib wrappers around statx always pass AT_NO_AUTOMOUNT for non-fd
  queries (i.e. when using a path name and not an fd)
- a number of g_file_* APIs are broken, as they fail with EINVAL

Also, this can be triggered when using fstatat() with AT_NO_AUTOMOUNT
among the flags.

Can AT_NO_AUTOMOUNT be (easily) implemented in the hurd lookup bits?
Alternatively, should AT_NO_AUTOMOUNT be excluded in at/fd lookups?

Thanks,
-- 
Pino Toscano
["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic