From 0018b6d75fe6e1d35c9c01148f0857e4f9d2db2f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 22 Dec 2011 11:07:55 -0500 Subject: [PATCH] core: Drop unix::is-mountpoint from fast queryinfo flags If this is present, we call access() and stat() on the parent directory. --- src/libotutil/ot-gio-utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libotutil/ot-gio-utils.h b/src/libotutil/ot-gio-utils.h index ef0f0b35..8a460692 100644 --- a/src/libotutil/ot-gio-utils.h +++ b/src/libotutil/ot-gio-utils.h @@ -27,7 +27,12 @@ G_BEGIN_DECLS -#define OSTREE_GIO_FAST_QUERYINFO "standard::name,standard::type,standard::is-symlink,standard::symlink-target,standard::is-hidden,unix::*" +/* Basically the stuff that comes from stat() and cheap calls like + * readlink(). Other things require opening the file, or also + * stat()ing the parent directory. + */ +#define OSTREE_GIO_FAST_QUERYINFO ("standard::name,standard::type,standard::is-symlink,standard::symlink-target,standard::is-hidden," \ + "unix::device,unix::inode,unix::mode,unix::uid,unix::gid,unix::rdev") GFileType ot_gfile_type_for_mode (guint32 mode);