[gvfs] afp: set afp::node-id attribute if requested



commit 0f3e0098aa8f1f1893a5e9db41c0d1532651c0a0
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Thu Jul 21 13:12:41 2011 +0200

    afp: set afp::node-id attribute if requested

 daemon/gvfsbackendafp.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index 6e8c652..3801f5b 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -245,6 +245,14 @@ static void fill_info (GVfsBackendAfp *afp_backend,
                                       mod_date + afp_backend->time_diff);
   }
 
+  if (bitmap & AFP_FILEDIR_BITMAP_NODE_ID_BIT)
+  {
+    guint32 node_id;
+
+    g_vfs_afp_reply_read_uint32 (reply, &node_id);
+    g_file_info_set_attribute_uint32 (info, "afp::node-id", node_id);
+  }
+  
   /* Directory specific attributes */
   if (directory)
   {



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