summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-internal.h
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-05-19 23:31:38 -0700
committerVijay Bellur <vbellur@redhat.com>2013-05-25 11:39:20 -0700
commited11e88b77fe45acd1181728435bb644607a2b22 (patch)
treeb4dbaffba0e7692266d4e8b26d1002dd0345aebc /api/src/glfs-internal.h
parent05aaec645a6262d431486eb5ac7cd702646cfcfb (diff)
gfapi: provide stable st_dev in stat structure
Samba depends on st_dev being unique and stable for different filesystems (it uses st_dev+st_ino as key to store metadata of a file). Change-Id: Ia022fabadfb5ef3fc9724c1b1ca86f1a20f98af9 BUG: 953694 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/5045 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'api/src/glfs-internal.h')
-rw-r--r--api/src/glfs-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/glfs-internal.h b/api/src/glfs-internal.h
index 7c622637d..d658ce2ae 100644
--- a/api/src/glfs-internal.h
+++ b/api/src/glfs-internal.h
@@ -38,6 +38,8 @@ struct glfs {
ssize_t oldvollen;
inode_t *cwd;
+
+ uint32_t dev_id; /* Used to fill st_dev in struct stat */
};
struct glfs_fd {