On 20 June 2014 08:27, Jiri B <ji...@devio.us> wrote: > I changed partition id from A6 to NTFS of running OpenBSD > 5.5 (16.-18.6. amd64 snapshot) and after a while OS freezed. > > Reproduce steps: > - 5.5 snapshot amd64 > (under RHEVM Linux/KVM: virtio block, virtio net) > - install OS > - boot OS > - fdisk -e sd0 > - change A6 to NTFS, save, exit fdisk > - wait a moment, meanwhile browser filesystem > > Screenshots: > - http://devio.us/~jirib/trace.png > - http://devio.us/~jirib/ps1.png > - http://devio.us/~jirib/ps2.png > > I see kernel panic (retyped):
I'm not sure, but this sounds like "Doctor, when I pointed the loaded gun at my head and pulled the trigger I got a bad headache.". Leave aside for the moment the extra confusion of doing this on a VM. Are you expecting you should be able to change fdisk partition id's on an in-use disk? Or are you expecting fdisk to grab the gun from your hand before you can pull the trigger? In the former case, why would you want to do this? In the latter case, would there never be a situation where you REALLY need to do this? Should fdisk fiddling in general be forbidden or just partition type changes? .... Ken > > ~~~ > login: /usr/src: bad dir ino 2 at offset 0: mangled entry > panic: bad dir > Stopped at Debugger+0x9: leave > RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC! > IF RUNNING SMP, USE 'mach ddbcpu <#_' AND 'trace' ON OTHER PROCESSORS, TOO. > DO NOT EUEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION! > ddb{0}> trace > Debugger() at Debugger+0x9 > panic() at panic+0xfe > ufs_makedirentry() at ufs_makedirentry > ufs_lookup() at ufs_lookup+0x6fd > VOP_LOOKUP() at VOP_LOOKUP+0x39 > vfs_lookup() at vfs_lookup+0x274 > namei() at namei+0x231 > dofstatat() at dofstatat+0x89 > syscall() at syscall+0x297 > --- syscall (number 38) --- > end of kernel > end trace frame: 0x7f7ffffcb030, count: -9 > acpi pdirpa+0x3fd5ea: > ddb{0}> > acpi pdirpa+0x3fd5ea: > ddb{0}> ps > PID PPID PGRP UID S FLAGS WAIT COMMAND > *27749 17385 27749 0 7 0x3 ls > 17385 23958 17385 0 3 0x8b pause ksh > 23958 10996 23958 0 3 0x92 select sshd > 25891 1 25891 0 3 0x83 ttyin getty > 10068 1 10068 0 3 0x83 ttyin getty > 29316 1 29316 0 3 0x83 ttyin getty > 6170 1 6170 0 3 0x83 ttyin getty > 25916 1 25916 0 3 0x83 ttyin getty > 19663 1 19663 0 3 0x80 select cron > 14534 1 14534 99 3 0x90 poll sndiod > 14856 20760 20760 95 3 0x90 kqread smtpd > 9262 20760 20760 95 3 0x90 kqread smtpd > 31647 20760 20760 95 3 0x90 kqread smtpd > 32759 20760 20760 95 3 0x90 kqread smtpd > 6366 20760 20760 95 3 0x90 kqread smtpd > 6102 20760 20760 103 3 0x90 kqread smtpd > 20760 1 20760 0 3 0x80 kqread smtpd > 10996 1 10996 0 3 0x80 select sshd > 21460 22632 22632 74 3 0x90 bpf pflogd > 22632 1 22632 0 3 0x80 netio pflogd > 23598 9054 9054 73 7 0x90 syslogd > --db_more-- > 21460 22632 22632 74 3 0x90 bpf pflogd > 22632 1 22632 0 3 0x80 netio pflogd > 23598 9054 9054 73 7 0x90 syslogd > 9054 1 9054 0 3 0x80 netio syslogd > 9304 1 9304 77 3 0x90 poll dhclient > 3682 1 3682 0 3 0x80 poll dhclient > 7229 0 0 0 3 0x14200 aiodoned aiodoned > 20673 0 0 0 3 0x14200 syncer update > 3720 0 0 0 3 0x14200 cleaner cleaner > 5618 0 0 0 3 0x14200 reaper reaper > 302 0 0 0 3 0x14200 pgdaemon pagedaemon > 20611 0 0 0 3 0x14200 bored crypto > 18571 0 0 0 3 0x14200 pftm pfpurge > 23643 0 0 0 3 0x14200 usbtsk usbtask > 15777 0 0 0 3 0x14200 usbatsk usbatsk > 12673 0 0 0 3 0x14200 bored viomb > 27497 0 0 0 3 0x40014200 acpi0 acpi0 > 12454 0 0 0 3 0x40014200 idle1 > 15693 0 0 0 3 0x14200 bored systqmp > 20336 0 0 0 3 0x14200 bored systq > 6798 0 0 0 3 0x14200 bored syswq > 29093 0 0 0 3 0x40014200 idle0 > 1 0 1 0 3 0x82 wait init > 0 -1 0 0 3 0x10200 scheduler swapper > ddb{0}> > > j.