From c618b7bc59ad46e8b9d1eed0383184336382aec7 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 30 Oct 2009 03:40:09 +0000 Subject: booster, libglusterfsclient: Support samba specific relative paths Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 158 (libglusterfsclient: Applications are restricted to using absolute paths) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=158 --- booster/src/booster_fstab.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'booster') diff --git a/booster/src/booster_fstab.c b/booster/src/booster_fstab.c index 202249cad..9524bc668 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"); -- cgit