From ed11e88b77fe45acd1181728435bb644607a2b22 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 19 May 2013 23:31:38 -0700 Subject: 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 Reviewed-on: http://review.gluster.org/5045 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- api/src/glfs-internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/src/glfs-internal.h') 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 { -- cgit