Re: [RFC] mount can figure out fstype automatically
- From: Scott Long <scottl@xxxxxxxxxx>
- Date: Sat, 08 Jul 2006 10:37:12 -0600
Craig Rodrigues wrote:
On Sat, Jul 08, 2006 at 05:37:26PM +0200, Dag-Erling Smrgrav wrote:
What about cases where there may be several matching file systems?
For instance, a clean ext3 file system is also a valid ext2 file
system (and vice versa).
Currently, FreeBSD can only mount ext2 with mount -t ext2fs.
A better example would probably be udf and cd9660 filesystems.
Right now the logic is to iterate over the list of known local
filesystems (always starting with "ufs"), skipping over "synthetic"
and "network" filesystems,
i.e. similar to the list produced by lsvfs:
Filesystem Refs Flags
-------------------------------- ----- ---------------
ufs 8 reiserfs 0 read-only
nfs4 0 network
ext2fs 0 ntfs 0 cd9660 0 read-only
procfs 1 synthetic
msdosfs 0 xfs 0 devfs 1 synthetic
nfs 0 network
The first matching filesystem wins....not perfect, but
maybe good enough for a lot of cases.
mount -t always works if you want to specify the fstype.
Where is udf in the list? Btw, it's not that udf and cd9660 are
compatible, they aren't by any means. It's that the can co-exist on
the same media, and often times a UDF filesystem has cd9660 structures
available for compatibility. If you added udf to your list above with a
higher priority than cd9660, everything should 'just work', and you'd
still be able to override it manually.
Scott
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- References:
- [RFC] mount can figure out fstype automatically
- From: Craig Rodrigues
- Re: [RFC] mount can figure out fstype automatically
- From: Dag-Erling Smørgrav
- Re: [RFC] mount can figure out fstype automatically
- From: Craig Rodrigues
- [RFC] mount can figure out fstype automatically
- Prev by Date: Re: [RFC] mount can figure out fstype automatically
- Next by Date: Re: [RFC] mount can figure out fstype automatically
- Previous by thread: Re: [RFC] mount can figure out fstype automatically
- Next by thread: Re: [RFC] mount can figure out fstype automatically
- Index(es):
Relevant Pages
- Re: [RFC] mount can figure out fstype automatically
... a clean ext3 file system is also a valid ext2 file ... FreeBSD can only
mount ext2 with mount -t ext2fs. ... A better example would probably be udf and cd9660
filesystems. ... (freebsd-current) - Re: [RFC] mount can figure out fstype automatically
... a clean ext3 file system is also a valid ext2 file ... FreeBSD can only
mount ext2 with mount -t ext2fs. ... (freebsd-arch) - Re: [RFC] mount can figure out fstype automatically
... a clean ext3 file system is also a valid ext2 file ... FreeBSD can only
mount ext2 with mount -t ext2fs. ... (freebsd-current) - Will this work in 6.0?
... Verify that the system supports two hard drives. ... Boot to single user
mode: ... # mount -a -t ufs ... If the new filesystems aren't automatically
mounted, ... (comp.unix.bsd.freebsd.misc) - Re: [PATCH] cifs: handle termination of cifs oplockd kernel thread
... > user mount feature aswell. ... block based filesystems are probably
unsafe at the moment, ... to mount from an arbitrary server. ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel)