On Wed, Oct 10, 2012 at 02:44:32PM +0600, ???? ??????? wrote:
> ?????, 10 ??????? 2012 ?. ???????????? Nick Holland ?????:
> 
> > On 10/09/2012 12:55 PM, ???? ??????? wrote:
> >
> >> Hello!
> >>
> >> I'm investigating /etc/rc script. And I found the following there:
> >>
> >> if [ -e /fastboot ]; then
> >>          echo "Fast boot: skipping disk checks."
> >> elif [ X"$1" = X"autoboot" ]; then
> >>          echo "Automatic boot in progress: starting file system checks."
> >>
> >>
> >> hmm... if I put /fastboot, no filesystem will be checked ?
> >>
> >
> > so says the code, yes.
> >
> >  how it supposed
> >> to work for non-nfs filesystems ?
> >>
> >
> > "properly"?
> >
> > they'll be not checked, too?
> >
> > I think I'm missing part of your question...but the answer is in the code,
> > which you are already reading.
> 
> 
> I meant, in case of NFS you don't need to fsck at all. However, there's no
> need to indicate such case. mount already knows if there nfs stuff.

Often, on my diskless client (every mount is NFS), I'll put an
immuable /fastboot on the server in the NFS root directory. It saves
the machine from downloading and executing one small program that
would do nothing. On some extremely slow arch, there's a noticable
difference. (But OpenBSD discontinuated that arch. Still bitter
about it.)

> 
> 
> >
> > You don't normally fsck an nfs mount (that advisory has always satisfied
> > my curiosity sufficiently, I've never actually tried it.  I probably
> > should).

fsck does not do the actual file system checks. That's the job for
the fsck_FILESYSTEMTYPE programs.  Only fsck_ffs, fsck_ext2fs and
fsck_msdos exists on OpenBSD. Every other type of filesystem can
not be checked.

Reply via email to