[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kernel/4997: panic: flush_pagedep_deps: MKDIR_PARENT
- To: bugs_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: Re: kernel/4997: panic: flush_pagedep_deps: MKDIR_PARENT
- From: rd_(_at_)_thrush_(_dot_)_com
- Date: Thu, 9 Feb 2006 08:45:01 -0700 (MST)
- Cc:
- Reply-to: rd_(_at_)_thrush_(_dot_)_com
The following reply was made to PR kernel/4997; it has been noted by GNATS.
From: rd_(_at_)_thrush_(_dot_)_com
To: gnats_(_at_)_openbsd_(_dot_)_org
Cc: Ted Unangst <ted_(_dot_)_unangst_(_at_)_gmail_(_dot_)_com>
Subject: Re: kernel/4997: panic: flush_pagedep_deps: MKDIR_PARENT
Date: Thu, 9 Feb 2006 10:30:23 -0500
I installed the latest -current snapshot (Feb 8 15:38:19 MST 2006)
before revisiting this problem.
>>>>> "t" == Ted Unangst <ted_(_dot_)_unangst_(_at_)_gmail_(_dot_)_com> writes:
t> sync; sync; sleep 1; sync;
t> will also probably make it less likely (as a "workaround").
Adding the above commands help as long as they are added after every
operation that scribbles on the filesystem. Over 250 iterations of
a slightly modified version of the script from the original bug
report were run without panic'ing. However, there are still some
serious problems. The sequence:
mount -o softdep -ur /mnt
sync; sync; sleep 1; sync
mount -o softdep -uw /mnt
sync; sync; sleep 1; sync
rm -rf /mnt/*
sync; sync; sleep 1; sync
does not always remove all data and inodes from the filesystem.
Please see iteration 2 in the appended typescript where the next
command "mtree ..." results in errors "/mnt: create/symlink failed,
no inodes free". This process repeats every other iteration. I've
included a copy of the test script and a typescript of 6 iterations
for further inspection as well as the dmesg.
It appears to my untrained eye that the softdep architecture doesn't
properly handle the transition between writeable and read-only
mounts. In certain cases, this results in the unacceptable panic
reported in the original bug report. In other cases (as above), it
results in unexpected behavior and requires more workaround.
Please let me know if further information is needed. I could make
the test machine and the machine handling its serial console
available to developers.
Regards, Bob
moby:home/rd 499>cat ~/bin/Do.svnd.short.tedu
#! /bin/sh
MNTED=$(df | grep '/dev/svnd0')
if [ "$MNTED" ] ; then
umount -f /mnt || exit 1
sudo vnconfig -u svnd0 || exit 1
fi
dd if=/dev/zero of=$HOME/svnd.test count=1000
vnconfig -v -c svnd0 $HOME/svnd.test || exit 2
(echo a; echo a; echo ; echo ; echo ; echo p; echo w; echo q) | disklabel -E svnd0
newfs /dev/rsvnd0a
mount -t ffs -o softdep /dev/svnd0a /mnt || exit 3
cd /mnt
CNT=0
while :
do
CNT=$(($CNT + 1))
echo Iteration $CNT
echo Mount writable and clean
mount -o softdep -uw /mnt || exit 4
sync; sync; sleep 1; sync; du -s .; df -i .
mount | grep /mnt
rm -rf /mnt/*
du -s .; df -i .
sync; sync; sleep 1; sync; du -s .; df -i .
mtree -qdef /etc/mtree/BSD.local.dist -p /mnt -U >/dev/null || exit 5
sync; sync; sleep 1; sync; du -s .; df -i .
echo Mount read-only after clean
mount -o softdep -ur /mnt || exit 6
sync; sync; sleep 1; sync; du -s .; df -i .
mount | grep /mnt
echo Mount writable and dd
mount -o softdep -uw /mnt || exit 7
sync; sync; sleep 1; sync; du -s .; df -i .
mount | grep /mnt
mkdir -p /mnt/usr/local/bin
dd if=/dev/zero of=/mnt/usr/local/bin/junk count=200
sync; sync; sleep 1; sync; du -s .; df -i .
echo Mount read-only after dd
mount -o softdep -ur /mnt || exit 8
sync; sync; sleep 1; sync; du -s .; df -i .
mount | grep /mnt
done
moby:home/rd 500>sudo sh -x ~rd/bin/Do.svnd.short.tedu
+ df
+ grep /dev/svnd0
+ MNTED=
+ [ ]
+ dd if=/dev/zero of=/home/rd/svnd.test count=1000
1000+0 records in
1000+0 records out
512000 bytes transferred in 0.059 secs (8676054 bytes/sec)
+ vnconfig -v -c svnd0 /home/rd/svnd.test
svnd0: 512000 bytes on /home/rd/svnd.test
+ echo a
+ echo a
+ echo
+ echo
+ echo
+ echo p
+ echo w
+ echo q
+ disklabel -E svnd0
disklabel: Can't get bios geometry: Device not configured
Initial label editor (enter '?' for help at any prompt)
> partition: [a] offset: [0] size: [1000] FS type: [4.2BSD] > device: /dev/rsvnd0c
type: SCSI
disk: vnd device
label: fictitious
bytes/sector: 512
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 10
total sectors: 1000
free sectors: 0
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1000 0 4.2BSD 2048 16384 16 # Cyl 0 - 9
c: 1000 0 unused 0 0 # Cyl 0 - 9
> > No label changes.
+ newfs /dev/rsvnd0a
Warning: cylinder groups must have a multiple of 8 cylinders
/dev/rsvnd0a: 1000 sectors in 10 cylinders of 1 tracks, 100 sectors
0.5MB in 1 cyl groups (16 c/g, 0.78MB/g, 128 i/g)
super-block backups (for fsck -b #) at:
32,
+ mount -t ffs -o softdep /dev/svnd0a /mnt
+ cd /mnt
+ CNT=0
+ :
+ CNT=1
+ echo Iteration 1
Iteration 1
+ echo Mount writable and clean
Mount writable and clean
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 2 412 0% 1 125 1% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ rm -rf /mnt/*
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 2 412 0% 1 125 1% /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 2 412 0% 1 125 1% /mnt
+ mtree -qdef /etc/mtree/BSD.local.dist -p /mnt -U
+ > /dev/null
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 98 28 78% /mnt
+ echo Mount read-only after clean
Mount read-only after clean
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 98 28 78% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ echo Mount writable and dd
Mount writable and dd
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 98 28 78% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ mkdir -p /mnt/usr/local/bin
+ dd if=/dev/zero of=/mnt/usr/local/bin/junk count=200
200+0 records in
200+0 records out
102400 bytes transferred in 0.006 secs (14672589 bytes/sec)
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 102 24 81% /mnt
+ echo Mount read-only after dd
Mount read-only after dd
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 102 24 81% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ :
+ CNT=2
+ echo Iteration 2
Iteration 2
+ echo Mount writable and clean
Mount writable and clean
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 102 24 81% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ rm -rf /mnt/bin /mnt/include /mnt/info /mnt/lib /mnt/libexec /mnt/man /mnt/sbin /mnt/share /mnt/usr
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 102 24 81% /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 102 24 81% /mnt
+ mtree -qdef /etc/mtree/BSD.local.dist -p /mnt -U
+ > /dev/null
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes fr+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
50 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 50 364 12% 28 98 22% /mnt
+ echo Mount read-only after clean
Mount read-only after clean
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
50 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 50 364 12% 25 101 20% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ echo Mount writable and dd
Mount writable and dd
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
50 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 50 364 12% 25 101 20% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ mkdir -p /mnt/usr/local/bin
+ dd if=/dev/zero of=/mnt/usr/local/bin/junk count=200
200+0 records in
200+0 records out
102400 bytes transferred in 0.008 secs (12615498 bytes/sec)
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
156 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 156 258 38% 29 97 23% /mnt
+ echo Mount read-only after dd
Mount read-only after dd
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
156 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 156 258 38% 29 97 23% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ :
+ CNT=3
+ echo Iteration 3
Iteration 3
+ echo Mount writable and clean
Mount writable and clean
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
156 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 156 258 38% 29 97 23% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ rm -rf /mnt/bin /mnt/include /mnt/info /mnt/lib /mnt/libexec /mnt/man /mnt/usr
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 156 258 38% 29 97 23% /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 156 258 38% 29 97 23% /mnt
+ mtree -qdef /etc/mtree/BSD.local.dist -p /mnt -U
+ > /dev/null
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 102 24 81% /mnt
+ echo Mount read-only after clean
Mount read-only after clean
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 100 26 79% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ echo Mount writable and dd
Mount writable and dd
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 100 26 79% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ mkdir -p /mnt/usr/local/bin
+ dd if=/dev/zero of=/mnt/usr/local/bin/junk count=200
200+0 records in
200+0 records out
102400 bytes transferred in 0.037 secs (2709210 bytes/sec)
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 104 22 83% /mnt
+ echo Mount read-only after dd
Mount read-only after dd
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 104 22 83% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ :
+ CNT=4
+ echo Iteration 4
Iteration 4
+ echo Mount writable and clean
Mount writable and clean
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 104 22 83% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ rm -rf /mnt/bin /mnt/include /mnt/info /mnt/lib /mnt/libexec /mnt/man /mnt/sbin /mnt/share /mnt/usr
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 104 22 83% /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 104 22 83% /mnt
+ mtree -qdef /etc/mtree/BSD.local.dist -p /mnt -U
+ > /dev/null
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes fr+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
46 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 46 368 11% 28 98 22% /mnt
+ echo Mount read-only after clean
Mount read-only after clean
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
46 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 46 368 11% 25 101 20% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ echo Mount writable and dd
Mount writable and dd
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
46 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 46 368 11% 25 101 20% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ mkdir -p /mnt/usr/local/bin
+ dd if=/dev/zero of=/mnt/usr/local/bin/junk count=200
200+0 records in
200+0 records out
102400 bytes transferred in 0.007 secs (13255663 bytes/sec)
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
152 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 152 262 37% 29 97 23% /mnt
+ echo Mount read-only after dd
Mount read-only after dd
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
152 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 152 262 37% 29 97 23% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ :
+ CNT=5
+ echo Iteration 5
Iteration 5
+ echo Mount writable and clean
Mount writable and clean
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
152 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 152 262 37% 29 97 23% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ rm -rf /mnt/bin /mnt/include /mnt/info /mnt/lib /mnt/libexec /mnt/man /mnt/usr
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 152 262 37% 29 97 23% /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 152 262 37% 29 97 23% /mnt
+ mtree -qdef /etc/mtree/BSD.local.dist -p /mnt -U
+ > /dev/null
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 104 22 83% /mnt
+ echo Mount read-only after clean
Mount read-only after clean
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 102 24 81% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ echo Mount writable and dd
Mount writable and dd
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
196 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 196 218 47% 102 24 81% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ mkdir -p /mnt/usr/local/bin
+ dd if=/dev/zero of=/mnt/usr/local/bin/junk count=200
200+0 records in
200+0 records out
102400 bytes transferred in 0.011 secs (9117621 bytes/sec)
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 106 20 84% /mnt
+ echo Mount read-only after dd
Mount read-only after dd
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 106 20 84% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ :
+ CNT=6
+ echo Iteration 6
Iteration 6
+ echo Mount writable and clean
Mount writable and clean
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
302 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 106 20 84% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ rm -rf /mnt/bin /mnt/include /mnt/info /mnt/lib /mnt/libexec /mnt/man /mnt/sbin /mnt/share /mnt/usr
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 106 20 84% /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
2 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 302 112 73% 106 20 84% /mnt
+ mtree -qdef /etc/mtree/BSD.local.dist -p /mnt -U
+ > /dev/null
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes free
/mnt: create/symlink failed, no inodes fr+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
42 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 42 372 10% 28 98 22% /mnt
+ echo Mount read-only after clean
Mount read-only after clean
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
42 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 42 372 10% 25 101 20% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, read-only)
+ echo Mount writable and dd
Mount writable and dd
+ mount -o softdep -uw /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
42 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 42 372 10% 25 101 20% /mnt
+ mount
+ grep /mnt
/dev/svnd0a on /mnt type ffs (local, softdep)
+ mkdir -p /mnt/usr/local/bin
+ dd if=/dev/zero of=/mnt/usr/local/bin/junk count=200
200+0 records in
200+0 records out
102400 bytes transferred in 0.007 secs (12819229 bytes/sec)
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
148 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 148 266 36% 29 97 23% /mnt
+ echo Mount read-only after dd
Mount read-only after dd
+ mount -o softdep -ur /mnt
+ sync
+ sync
+ sleep 1
+ sync
+ du -s .
148 .
+ df -i .
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
/dev/svnd0a 434 148 266 36% 29 97 23% /mnt
+ grep /mnt
+ mount
/dev/svnd0a on /mnt type ffs (local, read-only)
+ :
[ snip repetitive data ]
######################################################################3
>> OpenBSD/i386 BOOT 2.10
boot>
booting hd0a:/bsd: 4962472+867752 [52+255920+237175]=0x607e20
entry point at 0x100120
[ using 493520 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2006 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 3.9-beta (GENERIC) #599: Wed Feb 8 15:38:19 MST 2006
pvalchev_(_at_)_i386_(_dot_)_openbsd_(_dot_)_org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 300 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 167321600 (163400K)
avail mem = 145707008 (142292K)
using 2068 buffers containing 8470528 bytes (8272K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ff) BIOS, date 11/30/99, BIOS32 rev. 0 @ 0xf0000
apm0 at bios0: Power Management spec V1.2 (BIOS managing devices)
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 130102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x1080
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf09a0/80 (3 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf71b0/80 (3 entries)
pcibios0: PCI Exclusive IRQs: 11
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371AB PIIX4 ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0xb000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX" rev 0x02
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MHT2040AH>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, UJDA150, 1.02> SCSI0 5/cdrom removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd0(pciide0:0:1): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMBus disabled
vga1 at pci0 dev 8 function 0 "Chips and Technologies 65555" rev 0xa8
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
cbb0 at pci0 dev 17 function 0 "Texas Instruments PCI1220 CardBus" rev 0x02: irq 11
cbb1 at pci0 dev 17 function 1 "Texas Instruments PCI1220 CardBus" rev 0x02: irq 11
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: <SB MIDI UART>
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: <SB Yamaha OPL3>
pcppi0 at isa0 port 0x61
midi2 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom2: irq 5 already in use
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0 cacheline 0x8, lattimer 0x20
pcmcia1 at cardslot1
biomask ef4d netmask ef4d ttymask ffcf
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
aue0 at uhub0 port 1
aue0: SMC, Inc EZ USB/Ethernet Converter, rev 1.10/1.01, addr 2
aue0: address 00:e0:29:91:72:c9
acphy0 at aue0 phy 1: AC101 10/100 PHY, rev. 11
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
Automatic boot in progress: starting file system checks.
/dev/rwd0a: 3245 files, 19963 used, 20920 free (1008 frags, 2489 blocks, 2.5% fragmentation)
/dev/rwd0a: MARKING FILE SYSTEM CLEAN
/dev/rwd0h: 383 files, 697814 used, 4602277 free (565 frags, 575214 blocks, 0.0% fragmentation)
/dev/rwd0h: MARKING FILE SYSTEM CLEAN
/dev/rwd0d: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
/dev/rwd0e: 1610 files, 20667 used, 432804 free (412 frags, 54049 blocks, 0.1% fragmentation)
/dev/rwd0e: MARKING FILE SYSTEM CLEAN
setting tty flags
ddb.console: 0 -> 1
ddb.max_line: 24 -> 0
machdep.allowaperture: 0 -> 2
machdep.kbdreset: 0 -> 1
starting network
DHCPREQUEST on aue0 to 255.255.255.255 port 67
DHCPREQUEST on aue0 to 255.255.255.255 port 67
DHCPACK from 10.0.2.3
bound to 10.0.2.53 -- renewal in 302400 seconds.
starting system logger
starting initial daemons: ntpd.
savecore: no core dump
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files
starting network daemons: lpd sendmail inetd sshd.
starting local daemons:.
standard daemons: cron.
Thu Feb 9 07:46:41 EST 2006
Visit your host, monkey.org