summaryrefslogtreecommitdiffstats
path: root/booster/src
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-10-30 03:28:38 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-30 03:37:39 -0700
commite6fc0cbe716a18f02891d3911481fdcb121d8840 (patch)
tree34fa4bb4cc83d3e07891ef1cfe77ac21859a1482 /booster/src
parent5d9a4d81b3928e6af15aaeb7fab18fb451f7abcc (diff)
booster, libglusterfsclient: Support samba specific relative paths
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 158 (libglusterfsclient: Applications are restricted to using absolute paths) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=158
Diffstat (limited to 'booster/src')
-rw-r--r--booster/src/booster_fstab.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/booster/src/booster_fstab.c b/booster/src/booster_fstab.c
index 202249cadf3..9524bc66870 100644
--- a/booster/src/booster_fstab.c
+++ b/booster/src/booster_fstab.c
@@ -375,6 +375,7 @@ booster_mount (struct glusterfs_mntent *ent)
time_t timeout = BOOSTER_DEFAULT_ATTR_TIMEO;
char *timeostr = NULL;
char *endptr = NULL;
+ char *optval = NULL;
if (!ent)
return;
@@ -420,6 +421,13 @@ booster_mount (struct glusterfs_mntent *ent)
ipars.lookup_timeout = timeout;
ipars.stat_timeout = timeout;
+ opt = glusterfs_fstab_hasoption (ent, "relativepaths");
+ if (opt) {
+ optval = get_option_value (opt);
+ if (strcmp (optval, "on") == 0)
+ ipars.relativepaths = 1;
+ }
+
if ((glusterfs_mount (ent->mnt_dir, &ipars)) == -1)
gf_log ("booster-fstab", GF_LOG_ERROR, "VMP mounting failed");