bug-hurd
[Top][All Lists]
Advanced

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

stat(x) & AT_NO_AUTOMOUNT


From: Pino Toscano
Subject: stat(x) & AT_NO_AUTOMOUNT
Date: Sat, 28 Nov 2020 19:45:12 +0100

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

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]