From owner-freebsd-current Fri Oct 25 03:24:33 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA06937 for current-outgoing; Fri, 25 Oct 1996 03:24:33 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA06911 for ; Fri, 25 Oct 1996 03:24:29 -0700 (PDT) Received: from nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id CAA16003 for ; Fri, 25 Oct 1996 02:18:28 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by nike.efn.org (8.7.5/8.7.3) with SMTP id CAA00547 for ; Fri, 25 Oct 1996 02:18:25 -0700 (PDT) Date: Fri, 25 Oct 1996 02:18:25 -0700 (PDT) From: John-Mark Gurney X-Sender: jmg@nike Reply-To: John-Mark Gurney To: FreeBSD Current Subject: fsck add to support specifing a mount point Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk well... I say the pr about fsck not supporting mount points... so I decided to take a look at it... and I think this is the proper fix... I've tried it out... and is sucessfully did: "fsck /usr" properly... hope the patch helps... I would of submitted a send-pr but I'm not sure if I just submit it as a new one or if I can "add" it the the relevant one... ttyl... Index: preen.c =================================================================== RCS file: /usr/cvs/src/sbin/fsck/preen.c,v retrieving revision 1.3 diff -c -r1.3 preen.c *** preen.c 1995/05/30 06:09:07 1.3 --- preen.c 1996/10/25 09:14:29 *************** *** 45,50 **** --- 45,51 ---- #include #include #include + #include #include "fsck.h" struct part { *************** *** 323,328 **** --- 324,338 ---- } } else if ((stblock.st_mode & S_IFMT) == S_IFCHR && !retried) { name = unrawname(name); + retried++; + goto retry; + } else if ((stblock.st_mode & S_IFMT) == S_IFDIR && !retried) { + struct fstab *fsinfo; + if(!(fsinfo=getfsfile(name))) { + printf("Can't resolve %s to character special device", name); + return (0); + } + name = fsinfo->fs_spec; retried++; goto retry; } John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)