diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-08-28 00:16:42 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-02 10:30:04 -0700 |
commit | d165f43bb127e2a055721aa7793743fd55e94ed3 (patch) | |
tree | ef3099a88734f3d597a18328e8cfc0ef09ea088c /booster | |
parent | c50ead8d5318d759207543ea040baaf8ddadc628 (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.c | 6 |
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); |