From owner-cvs-sbin Sun Mar 8 06:52:19 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA01703 for cvs-sbin-outgoing; Sun, 8 Mar 1998 06:52:19 -0800 (PST) (envelope-from owner-cvs-sbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA01652; Sun, 8 Mar 1998 06:52:00 -0800 (PST) (envelope-from msmith@FreeBSD.org) From: Michael Smith Received: (from msmith@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA06511; Sun, 8 Mar 1998 06:50:07 -0800 (PST) Date: Sun, 8 Mar 1998 06:50:07 -0800 (PST) Message-Id: <199803081450.GAA06511@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/mount Makefile mount_ufs.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk msmith 1998/03/08 06:50:07 PST Modified files: sbin/mount Makefile mount_ufs.c Log: If we are mounting the root filesystem, and we're accessing it through something that might refer to the compatability slice rather than the correct slice entry, try all the possible slice entries first. This is a compatability hack to deal with the case where the kernel has correctly mounted the root filesystem out of its slice, but the user has not updated their /etc/fstab file to reflect this. A diagnostic is emitted if the mount succeeds, indicating that the file should be updated. This is a prelude to fixing the kernel to behave as alluded to above. Reviewed by: (discussed with) julian, phk Revision Changes Path 1.7 +4 -1 src/sbin/mount/Makefile 1.11 +34 -2 src/sbin/mount/mount_ufs.c