[Bug 208625] PATCH: mountcritremote: mount -d output format change regression

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 8 00:54:31 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208625

            Bug ID: 208625
           Summary: PATCH: mountcritremote: mount -d output format change
                    regression
           Product: Base System
           Version: 10.3-BETA2
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: corsmith at gmail.com
          Keywords: patch

Created attachment 169096
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169096&action=edit
mountcritremote patch

At some point the output format of mount -d changed from:

mount_tmpfs ...

to:

mount -t tmpfs

This had a side effect of causing mountcritremote to no longer notice when
there were remote file system types that needed mounting.  The current check
looks like:

case "`mount -d -a -t ${fstype}`" in
*mount_${fstype}*)
        echo -n "Mounting ${fsdecr} file systems:"

There is no _ in the current output so this will never match.

The attached patch simply checks if there is any output re-using the existing
idiom earlier in the script to maintain consistency.

The new check looks like:

case "`mount -d -a -t ${fstype}`" in
'')
        ;;
*)
        echo -n "Mounting ${fsdecr} file systems:"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list