+2007-02-05 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix 2.6.9 RHEL kernels, which have compatibility mutex.h, but
+ don't define mutex_destroy(), bummer. Patch from Phil Schwan
+
+ * Fix option parsing in mount.fuse. Patch from Jens M. Noedler
+
2007-02-04 Miklos Szeredi <miklos@szeredi.hu>
* Released 2.6.3
#define mutex semaphore
#endif
#ifndef HAVE_I_MUTEX
+#ifndef mutex_destroy
+/* Some RHEL kernels include a backported mutex.h, which lacks mutex_destroy */
+#define mutex_destroy(m) do { } while (0)
+#endif
#define i_mutex i_sem /* Hack for struct inode */
#endif
#ifndef KERNEL_2_6_19_PLUS
# to kick me to the right way
#
-VERSION="0.0.1"
+VERSION="0.0.2"
PRGNAME=`basename $0`
if [ -z "$HOME" ]; then
shift
shift
-ignore_opts='\(user\|nouser\|users\|auto\|noauto\|_netdev\)'
-
-OPTIONS=`echo $@ | sed "s/,${ignore_opts}\|${ignore_opts},//g"`
+# loop over each mount option and skip all that should be ignored
+IFS=","
+for OPT in $@; do
+ OPT=`echo $OPT | sed "s/^\(-o\|user\|nouser\|users\|auto\|noauto\|_netdev\)$/ignore/"`
+ if [ "$OPT" == "ignore" ]; then continue; fi
+ OPTIONS="$OPTIONS$OPT,"
+done
+IFS=" "
+
+# add "-o " and remove trailing comma
+OPTIONS="-o `echo $OPTIONS | sed "s/,$//"`"
${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS}