Charles Soto wrote: > On 6/27/08 8:55 AM, "Mark J Musante" <[EMAIL PROTECTED]> wrote: > >> On Fri, 27 Jun 2008, wan_jm wrote: >> >>> the procedure is follows: >>> 1. mkdir /tank >>> 2. touch /tank/a >>> 3. zpool create tank c0d0p3 >>> this command give the following error message: >>> cannot mount '/tank': directory is not empty; >>> 4. reboot. >>> then the os can only be login in from console. does it a bug? >> No, I would not consider that a bug. > > Why?
well ... why would it be a bug? zfs is just making sure that it's not accidentally "hiding" anything by mounting something on a non-empty mountpoint; as you probably know, anything that is in a directory is invisible if that directory is used as a mountpoint for another filesystem. zfs cannot know whether the mountpoint contains rubbish or whether the mountpoint property is incorrect, therefore the only sensible thing to do is to not mount an FS if the mountpoint is non-empty. to quote Renaud: > This is an expected behavior. filesystem/local is supposed to mount all > ZFS filesystems. If it fails then filesystem/local goes into maintenance > and network/inetd cannot start. HTH Michael -- Michael Schuster http://blogs.sun.com/recursion Recursion, n.: see 'Recursion' _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss