Skip site navigation (1)Skip section navigation (2)
Date:      22 Oct 2000 01:42:50 +0200
From:      Dag-Erling Smorgrav <des@thinksec.com>
To:        arch@freebsd.org
Subject:   Ideas concerning fsck
Message-ID:  <xzpsnpprcat.fsf@des.thinksec.com>

next in thread | raw e-mail | index | archive | help
What do people think about dispensing with the Pass# argument in fstab
and instead using the following algorithm for 'fsck -p':

  1) if the device does not begin with a slash, assume this is a
     pseudo-filesystem, and skip this entry.

  2) if the mountpoint is "none", skip this entry.

  3) if the fs type is known, run the appropriate command (which can
     be null, e.g. for cd9660), and skip to the next entry.

  4) if the fs type is unknown, but fsck_${fstype} exists, run it and
     skip to the next entry.

  5) print a big fat "Unknown file system type" warning and skip to
     the next entry.

As for which order to fsck file systems in, do / first, and everything
else in parallell afterwards (possibly with additional logic to try to
identify file systems that are on the same device and fsck them
sequentially to avoid thrashing)

I'm willing to write the code if people think it's a good idea.

DES
--=20
Dag-Erling Sm=F8rgrav - des@thinksec.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpsnpprcat.fsf>