diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-07-20 01:25:36 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-07-20 14:29:41 -0700 |
commit | 2add5760c412d85f56a1ca2fc61ca743d1ee2a74 (patch) | |
tree | 55977c6410496de0bfddb3c2c932b34ca6421b77 /libglusterfsclient/src/libglusterfsclient-internals.h | |
parent | 7b90b90780d3bb5a1b4a1c060fac1d2c4eb2a8dc (diff) |
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 <avati@dev.gluster.com>
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
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient-internals.h')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient-internals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient-internals.h b/libglusterfsclient/src/libglusterfsclient-internals.h index 3a5962a2294..09acf33e8c5 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 { |