summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@zresearch.com>2009-03-30 21:14:45 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-03-31 23:39:45 +0530
commit9922b37658d7d996321382c5157bf33bbbb1330d (patch)
tree11852674fbdc91867e1538da197aaf492aa16d7c /xlators
parenta0c1de7c9cf41d37f95660fe45da66418e263340 (diff)
Add support for log-level NORMAL in fuse mount helper script.
- patch submitted by John Feuerstein <john@feurix.com>. - copying changes in the patch verbatim to xlators/mount/fuse/utils/mount.glusterfs.in and xlators/mount/fuse/utils/mount_glusterfs.in Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in10
-rwxr-xr-xxlators/mount/fuse/utils/mount_glusterfs.in10
2 files changed, 14 insertions, 6 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 58da509f1..3f9778c65 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -25,10 +25,11 @@ _init ()
LOG_CRITICAL=CRITICAL;
LOG_ERROR=ERROR;
LOG_WARNING=WARNING;
+ LOG_NORMAL=NORMAL
LOG_DEBUG=DEBUG;
# set default log level to ERROR
- log_level=$LOG_WARNING;
+ log_level=$LOG_NORMAL;
}
start_glusterfs ()
@@ -42,6 +43,9 @@ start_glusterfs ()
"ERROR")
log_level=$LOG_ERROR;
;;
+ "NORMAL")
+ log_level=$LOG_NORMAL
+ ;;
"DEBUG")
log_level=$LOG_DEBUG;
;;
@@ -55,8 +59,8 @@ start_glusterfs ()
log_level=$LOG_NONE;
;;
*)
- echo "invalid log level $log_level_str, using ERROR";
- log_level=$LOG_ERROR;
+ echo "invalid log level $log_level_str, using NORMAL";
+ log_level=$LOG_NORMAL;
;;
esac
fi
diff --git a/xlators/mount/fuse/utils/mount_glusterfs.in b/xlators/mount/fuse/utils/mount_glusterfs.in
index b064e1ead..b6a3d1857 100755
--- a/xlators/mount/fuse/utils/mount_glusterfs.in
+++ b/xlators/mount/fuse/utils/mount_glusterfs.in
@@ -25,10 +25,11 @@ _init ()
LOG_CRITICAL=CRITICAL;
LOG_ERROR=ERROR;
LOG_WARNING=WARNING;
+ LOG_NORMAL=NORMAL;
LOG_DEBUG=DEBUG;
# set default log level to ERROR
- log_level=$LOG_WARNING;
+ log_level=$LOG_NORMAL;
}
start_glusterfs ()
@@ -42,6 +43,9 @@ start_glusterfs ()
"ERROR")
log_level=$LOG_ERROR;
;;
+ "NORMAL")
+ log_level=$LOG_NORMAL;
+ ;;
"DEBUG")
log_level=$LOG_DEBUG;
;;
@@ -55,8 +59,8 @@ start_glusterfs ()
log_level=$LOG_NONE;
;;
*)
- echo "invalid log level $log_level_str, using ERROR";
- log_level=$LOG_WARNING;
+ echo "invalid log level $log_level_str, using NORMAL";
+ log_level=$LOG_NORMAL;
;;
esac
fi