UFS panic - steps to reproduce

Link to this paste: http://bugs.dragonflybsd.org/pastes/401

Added by tuxillo over 2 years ago.
Syntax: Plain Text

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
1. Create many files

#! /bin/sh

[ -d /usr ] && /root/files

for i in `seq 1 50000`
do
    dd if=/dev/random of=/root/files/file-$i bs=$i count=1
done

2. Start cpdup'ing to a UFS FS with softdep activated (in my case /usr/tmp)
 cpdup -I -vv /root/files /usr/tmp

3. Try a couple times

NOTE: This is going to blow up your UFS filesystem, so backup your vkernel img (or the VM HDD).

Download