From 03d6dae5a4003bcaf86eb887f63444c0565ad32c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Mon, 20 Jul 2009 01:25:12 +0000 Subject: libglusterfsclient: Fake a fsid for every VMP This is needed to work around the replicate behaviour of possibly returning device number for the same file from different subvolumes. Signed-off-by: Anand V. Avati BUG: 148 (replicate: Returns st_dev from different subvols resulting in ESTALE thru unfs3booster) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=148 --- libglusterfsclient/src/libglusterfsclient-internals.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libglusterfsclient/src/libglusterfsclient-internals.h') diff --git a/libglusterfsclient/src/libglusterfsclient-internals.h b/libglusterfsclient/src/libglusterfsclient-internals.h index 3a5962a22..09acf33e8 100755 --- a/libglusterfsclient/src/libglusterfsclient-internals.h +++ b/libglusterfsclient/src/libglusterfsclient-internals.h @@ -44,6 +44,10 @@ typedef struct libglusterfs_client_ctx { uint32_t counter; time_t lookup_timeout; time_t stat_timeout; + /* We generate a fake fsid for the subvolume being + * accessed through this context. + */ + dev_t fake_fsid; }libglusterfs_client_ctx_t; typedef struct signal_handler { -- cgit