[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#609574: mount wrapper disregards remount requests

Package: freebsd-utils
Version: 8.1-3
Severity: normal

The present wrapper in "/bin/mount" coldly removes all traces
of a desired "remount" option, coldly hoping that nothing breaks
by doing so. It ought to be better to replace "remount" with
"update", which is the native notion in FreeBSD. The Sed command
in fact is simpler when implementing this new action. I have so
far not detected any drawback from the alteration in a running
system with the usual file system layout.

Mats Erik Andersson, DM
set -e

while [ $# -gt 0 ]; do
  case "$1" in
    -n) ;;
    -O) shift ;;
    *)  if [ -n "${args}" ] ; then args="${args} $1" ; else args="$1" ; fi ;;

args=`echo ${args} |
  sed -r -e "/-o[[:space:]]+[^[:space:]]*remount/ s/remount/update/g"`

exec /lib/freebsd/mount ${args}

Attachment: signature.asc
Description: Digital signature

Reply to: