cvs commit: src/sbin/mount Makefile mount.c src/sys/ufs/ffs ffs_vfsops.c

Bruce Evans bde at zeta.org.au
Mon Apr 26 19:09:18 PDT 2004


On Mon, 26 Apr 2004, Bosko Milekic wrote:

> bmilekic    2004/04/26 08:13:46 PDT
>
>   FreeBSD src repository
>
>   Modified files:
>     sbin/mount           Makefile mount.c
>     sys/ufs/ffs          ffs_vfsops.c
>   Log:
>   The previous change to mount(8) to report ufs or ufs2 used
>   libufs, which only works for Charlie root.
>
>   This change reverts the introduction of libufs and moves the
>   check into the kernel.  Since the f_fstypename is the same
>   for both ufs and ufs2, we check fs_magic for presence of
>   ufs2 and copy "ufs2" explicitly instead.

This seems to fix things like "mount -t ufs" and "find / -fstype ufs"
to not work with ufs2.  Many scripts may depend on this.

Is it too late to fix the misspelling of "ffs" as "ufs"?

The patch has some bugs (mainly clobbering of mp->mnt_stat.f_fstypename
via an alias in the first part of the change to ffs_statfs(), so the
larger second part of the change is a no-op).  Details in private mail.

Bruce


More information about the cvs-src mailing list