Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Dec 2019 13:52:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 242485] mount(8): not able to parse -e option for cd9660 filesystem
Message-ID:  <bug-242485-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242485

            Bug ID: 242485
           Summary: mount(8): not able to parse -e option for cd9660
                    filesystem
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: vermaden@interia.pl

>From the *man mount* page.

  Any additional options specific to a file system type that is not
  one of the internally known types (see the -t option) may be
  passed as a comma separated list; these options are distinguished
  by a leading =E2=80=9C-=E2=80=9D (dash).  For example, the mount command:

    mount -t cd9660 -o -e /dev/cd0 /cdrom

  causes mount to execute the equivalent of:

    /sbin/mount_cd9660 -e /dev/cd0 /cdrom



Then '-e' option should be handled the same by *mount_cd9660* and *mount -t
cd9660* commands ... at least in theory.

In practice *mount(8)* can not handle the '-e' option for cd9660 filesystem=
 as
shown below.



% file FreeBSD.iso
FreeBSD.iso: DOS/MBR boot sector; partition 1 : ID=3D0xee, start-CHS (0x0,0=
,2),
end-CHS (0x3ff,255,63), startsector 1, 1816971 sectors

% mdconfig -a -t vnode -f FreeBSD.iso
md0

% mount -t cd9660 -e /dev/md0 /mnt=20=20=20
mount: illegal option -- e
usage: mount [-adflpruvw] [-F fstab] [-o options] [-t ufs | external_type]
       mount [-dfpruvw] special | node
       mount [-dfpruvw] [-o options] [-t ufs | external_type] special node

% mount -t cd9660
(none)

% mount_cd9660 -e /dev/md0 /mnt

% mount -t cd9660
/dev/md0 on /mnt (cd9660, local, read-only)



Regards.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242485-227>