[gvfs] smb: Implement standard::allocated-size
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] smb: Implement standard::allocated-size
- Date: Thu, 5 Jun 2014 20:35:43 +0000 (UTC)
commit 948ce9902c8c9a60358e7957dda63c0475a42efe
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Sun Jun 1 21:15:19 2014 +0100
smb: Implement standard::allocated-size
https://bugzilla.gnome.org/show_bug.cgi?id=505042
daemon/gvfsbackendsmb.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index bd82fce..7e5bab5 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -1586,6 +1586,9 @@ set_info_from_stat (GVfsBackendSmb *backend,
g_file_info_set_file_type (info, file_type);
g_file_info_set_size (info, statbuf->st_size);
+ g_file_info_set_attribute_uint64 (info,
+ G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE,
+ statbuf->st_blocks * G_GUINT64_CONSTANT (512));
t.tv_sec = statbuf->st_mtime;
#if defined (HAVE_STRUCT_STAT_ST_MTIMENSEC)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]