Home | History | Annotate | Line # | Download | only in newfs_fsck
      1  1.1  perseant #!/bin/sh
      2  1.1  perseant 
      3  1.1  perseant #
      4  1.1  perseant # Make an LFS on TMPIM, fsck it, and mount it on TMPMP.
      5  1.1  perseant #
      6  1.1  perseant 
      7  1.1  perseant BVND=/dev/${VND}
      8  1.1  perseant CVND=/dev/r${VND}
      9  1.1  perseant if [ "x$NEWFS_LFS_FLAGS" = "x" ]
     10  1.1  perseant then
     11  1.2  perseant 	NEWFS_LFS_FLAGS="-B 131072 -b 4096 -f 4096 -M 6"
     12  1.1  perseant fi
     13  1.1  perseant 
     14  1.1  perseant echo "***  Creating a dummy directory tree at ${TMPMP} mounted on ${TMPIM}."
     15  1.1  perseant dd if=/dev/zero of=${TMPIM} count=5860
     16  1.1  perseant vnconfig -v ${BVND}${RPART} ${TMPIM}
     17  1.1  perseant disklabel -f ${SRCDIR}/disktab -rw ${VND} floppy288
     18  1.1  perseant newfs_lfs ${NEWFS_LFS_FLAGS} ${CVND}${MPART}
     19  1.2  perseant 
     20  1.1  perseant echo "***  Checking that fs made by newfs_lfs could be understood by fsck_lfs"
     21  1.2  perseant fsck_lfs -f -n ${CVND}${MPART} || exit 1
     22  1.2  perseant 
     23  1.1  perseant mkdir ${TMPMP}
     24  1.2  perseant mount -t lfs -o-N1 ${BVND}${MPART} ${TMPMP}
     25