[ostree] core: Drop unix::is-mountpoint from fast queryinfo flags



commit 0018b6d75fe6e1d35c9c01148f0857e4f9d2db2f
Author: Colin Walters <walters verbum org>
Date:   Thu Dec 22 11:07:55 2011 -0500

    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 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/libotutil/ot-gio-utils.h b/src/libotutil/ot-gio-utils.h
index ef0f0b3..8a46069 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);
 



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