summaryrefslogtreecommitdiffstats
path: root/booster
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-08-28 00:14:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-02 10:30:26 -0700
commit19de82a5caf0c6ec3ca09cb5b9a5f186fa9e78ee (patch)
treefff9d6e1e96f8a526cff16a9be6591e5962e0c23 /booster
parentd01487e9b8bc056adf611201a6a3b8f48c7af7f8 (diff)
booster: Support backward compatible options
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 209 (VMP parsing through fstab has issues) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=209
Diffstat (limited to 'booster')
-rw-r--r--booster/src/booster_fstab.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/booster/src/booster_fstab.c b/booster/src/booster_fstab.c
index e4de0f975..5f322acee 100644
--- a/booster/src/booster_fstab.c
+++ b/booster/src/booster_fstab.c
@@ -384,10 +384,16 @@ booster_mount (struct glusterfs_mntent *ent)
ipars.volume_name = get_option_value (opt);
opt = glusterfs_fstab_hasoption (ent, "log-file");
+ if (!opt)
+ opt = glusterfs_fstab_hasoption (ent, "logfile");
+
if (opt)
ipars.logfile = get_option_value (opt);
opt = glusterfs_fstab_hasoption (ent, "log-level");
+ if (!opt)
+ opt = glusterfs_fstab_hasoption (ent, "loglevel");
+
if (opt)
ipars.loglevel = get_option_value (opt);