|
|
| version 1.13, 2006/12/12 14:55:58 | version 1.14, 2007/06/04 06:12:42 |
|---|---|
| Line 72 _check_repair() | Line 72 _check_repair() |
| { | { |
| value=$1 | value=$1 |
| structure="$2" | structure="$2" |
| #ensure the filesystem has been dirtied since last repair | |
| _scratch_mount | |
| POSIXLY_CORRECT=yes \ | |
| dd if=/bin/sh of=$SCRATCH_MNT/sh 2>&1 |_filter_dd | |
| sync | |
| rm -f $SCRATCH_MNT/sh | |
| umount $SCRATCH_MNT | |
| _zero_position $value "$structure" | _zero_position $value "$structure" |
| _scratch_xfs_repair 2>&1 | _filter_repair | _scratch_xfs_repair 2>&1 | _filter_repair |
| # some basic sanity checks... | # some basic sanity checks... |
| _check_scratch_fs | _check_scratch_fs |
| _scratch_mount #mount | _scratch_mount #mount |