Hello,
Thank you for your answers@Christian: The command takes 1s, and seem to work as 
you said# dumpfs sd1c | grep clean
cgrotor 64      fmod    0       ronly   0       clean   0
@Theo: The fsck is not superfast, it takes 20s I end with that message39256 
files, 5904368 used, 10865841 free (15345 frags, 1356312 blocks, 0.1% 
fragmentation)

How does mount detects the partition need a fsck, I feed like it does it very 
fast.
I didn't mention that it's an encrypted partition from 
# disklabel sd1c
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: SR CRYPTO
From# disklabel sd0g | grep g:
  g:         68163807         36692448    RAID

I didn't think it would make a difference first
Regards

    Le lundi 2 avril 2018 à 00:59:42 UTC+2, Theo de Raadt <dera...@openbsd.org> 
a écrit :  
 
 > > How can I know if the partition needs to be checked by fsck, I'd like to 
 > > test that.
> 
> Check the output of dumpfs.  clean=0 means that the filesystem is
> dirty and fsck should be run.

It is cheaper to just run fsck.  If it has no work to do, it finishes.

  

Reply via email to