DragonFlyBSD Kernel Audit
DF-2621 / fix_run.log
← back to finding ↓ download raw
+ vnconfig -u vn0
+ vnconfig -u vn1
+ rm -f /root/poc/df2621/base.img /root/poc/df2621/clone.img
+ truncate -s 64M /root/poc/df2621/base.img
+ newfs_hammer2 -L testvol /root/poc/df2621/base.img
Volume /root/poc/df2621/base.img size  64.00MB
checkvolu header 0 0000000004000000/0000000004000000
---------------------------------------------
version:          2
total-size:        64.00MB (67108864 bytes)
boot-area-size:     8.00MB (8388608 bytes)
aux-area-size:      8.00MB (8388608 bytes)
topo-reserved:      4.00MB (4194304 bytes)
free-size:         44.00MB (46137344 bytes)
vol-fsid:         f71252cb-a302-11f1-a894-010000000000
sup-clid:         f71253e9-a302-11f1-a894-010000000000
sup-fsid:         f71254ee-a302-11f1-a894-010000000000
PFS "LOCAL"
    clid f7163cd5-a302-11f1-a894-010000000000
    fsid f7163d8d-a302-11f1-a894-010000000000
PFS "testvol"
    clid f7163e6f-a302-11f1-a894-010000000000
    fsid f7163f25-a302-11f1-a894-010000000000
+ dd 'if=/root/poc/df2621/base.img' 'of=/root/poc/df2621/clone.img' 'bs=1m'
+ vnconfig -c vn0 /root/poc/df2621/base.img
+ vnconfig -c vn1 /root/poc/df2621/clone.img
+ mkdir -p /mnt/h2 /mnt/h2b
+ echo '=== 0. baseline ==='
=== 0. baseline ===
+ echo -n 'T0='
T0=+ census
+ echo -n '  threads='
  threads=+ ps axlw
+ grep h2xop-testvol
+ grep -v grep
+ wc -l
       0
+ echo -n '  idle='
  idle=+ ps axlw
+ grep h2xop-testvol
+ grep -v grep
+ grep -c h2idle
0
+ true
+ echo -n '  frozen(h2twait)='
  frozen(h2twait)=+ ps axlw
+ grep h2xop-testvol
+ grep -v grep
+ grep -c h2twait
0
+ true
+ echo '=== 1. mount vn0@testvol ==='
=== 1. mount vn0@testvol ===
+ mount -t hammer2 -o ro /dev/vn0@testvol /mnt/h2
+ echo 'MOUNT1_RC=0'
MOUNT1_RC=0
+ echo -n 'T1='
T1=+ census
+ echo -n '  threads='
  threads=+ ps axlw
+ grep h2xop-testvol
+ grep -v grep
+ wc -l
      36
+ echo -n '  idle='
  idle=+ ps axlw
+ grep h2xop-testvol
+ grep -c h2idle
+ grep -v grep
36
+ echo -n '  frozen(h2twait)='
  frozen(h2twait)=+ ps axlw
+ grep h2xop-testvol
+ grep -v grep
+ grep -c h2twait
0
+ true
+ echo '=== 2. mount vn1@testvol (same clid): merge then EBUSY ==='
=== 2. mount vn1@testvol (same clid): merge then EBUSY ===
+ mount -t hammer2 -o ro /dev/vn1@testvol /mnt/h2b
mount: Device busy
+ echo 'MOUNT2_RC=1 (expect 1)'
MOUNT2_RC=1 (expect 1)
+ echo -n 'T2='
T2=+ census
+ echo -n '  threads='
  threads=+ ps axlw
+ grep h2xop-testvol
+ wc -l
+ grep -v grep
      72
+ echo -n '  idle='
  idle=+ ps axlw
+ grep h2xop-testvol
+ grep -c h2idle
+ grep -v grep
72
+ echo -n '  frozen(h2twait)='
  frozen(h2twait)=+ ps axlw
+ grep h2xop-testvol
+ grep -c h2twait
+ grep -v grep
0
+ true
+ echo '=== 3. umount -f /mnt/h2 ==='
=== 3. umount -f /mnt/h2 ===
+ date
Fri Aug 28 17:07:35 UTC 2026
+ umount -f /mnt/h2