diff options
author | Anand Avati <avati@redhat.com> | 2013-05-19 23:31:38 -0700 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-05-25 11:39:20 -0700 |
commit | ed11e88b77fe45acd1181728435bb644607a2b22 (patch) | |
tree | b4dbaffba0e7692266d4e8b26d1002dd0345aebc /api/src/glfs-internal.h | |
parent | 05aaec645a6262d431486eb5ac7cd702646cfcfb (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/glfs-internal.h b/api/src/glfs-internal.h index 7c622637da0..d658ce2ae19 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 { |