Subject: bin/24338: mount_lfs allows LFS filesystem to be mounted even when lfs_cleanerd is absent
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 02/06/2004 21:58:26
>Number:         24338
>Category:       bin
>Synopsis:       mount_lfs allows LFS filesystem to be mounted even when lfs_cleanerd is absent
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 06 21:59:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        current
>Organization:
>Environment:
NetBSD  1.6ZI NetBSD 1.6ZI (GENERIC) #0: Tue Feb  3 19:39:11 CET 2004  doc@mainframe.w.lub.pl:/usr/nbsrc/sys/arch/i386/compile/obj/GENERIC i386

>Description:
I have a root partition, on which /usr is installed.

I add another partition. It is LFS, I want to place /usr files there:

# mount -t lfs /dev/wd0e /usr
mount_lfs: exec /usr/libexec/lfs_cleanerd: No such file or directory

Of course, mount of that device on /usr "shadows" existent 
/usr directory (which is on the root partition and it is complete, 
contains all files)
>How-To-Repeat:
See above.
>Fix:
No idea. 

Depending on the severity of absence of lfs_cleanerd in system:

- such situations should be forbidden (eg. in such case filesystem 
  should be unmounted at once)

- such situations should be allowed, only with some verbose message from
  mount_lfs (eg. "you're running without lfs_cleanerd; you should run 
  it, because (...)")

  If absence of lfs_cleanerd is not severe, you should at least increase 
  verbosity of mount_lfs, just to avoid PRs like this one :)

>Release-Note:
>Audit-Trail:
>Unformatted: