On Tue, 15 Jan 2002, Bruce Evans wrote: ... > Yes, it is a bit confusing. sys/types.h gives the userland version.
Only as confusing as the rest of the dk* code :-) > > Try this version. Only disklabel.h has many changes. The code for > avoiding creation of bogus 'c' partitions didn't work at all. This works during startup but the following commands cases a panic while executing newfs (BT is attached): mdconfig -a -t swap -s 128M -o reserve -u 10 disklabel -r -w md10 auto (When looking into /dev now I see two! md10c devices!) newfs -f 4096 /dev/md10c tunefs -n enable /dev/md10c mount /dev/md10c /tmp Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS
GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... IdlePTD at phsyical address 0x00412000 initial pcb at physical address 0x00284ca0 panicstr: bdwrite: buffer is not busy panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x1c fault code = supervisor read, page not present instruction pointer = 0x8:0xc0178647 stack pointer = 0x10:0xca3d0ab0 frame pointer = 0x10:0xca3d0acc code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 364 (newfs) trap number = 12 panic: page fault syncing disks... panic: bdwrite: buffer is not busy Uptime: 9s pfs_vncache_unload(): 1 entries remaining dumping to dev ad0s3b, offset 3933440 dump ata0: resetting devices .. done 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 --- #0 dumpsys () at ../../../kern/kern_shutdown.c:492 492 if (!dodump) Cannot access memory at address 0x18. (kgdb) #0 dumpsys () at ../../../kern/kern_shutdown.c:492 #1 0xc01664c8 in boot (howto=0x104) at ../../../kern/kern_shutdown.c:335 #2 0xc0166917 in panic (fmt=0xc023b201 "bdwrite: buffer is not busy") at ../../../kern/kern_shutdown.c:634 #3 0xc019932b in bdwrite (bp=0xc4b286c8) at ../../../kern/vfs_bio.c:856 #4 0xc01d2c5e in ffs_update (vp=0xc9e7dde0, waitfor=0x0) at ../../../ufs/ffs/ffs_inode.c:120 #5 0xc01e00d6 in ffs_fsync (ap=0xca3d096c) at ../../../ufs/ffs/ffs_vnops.c:292 #6 0xc01de656 in ffs_sync (mp=0xc139c000, waitfor=0x2, cred=0xc0b44f00, td=0xc0259f24) at vnode_if.h:441 #7 0xc01a62d6 in sync (td=0xc0259f24, uap=0x0) at ../../../kern/vfs_syscalls.c:669 #8 0xc0166129 in boot (howto=0x100) at ../../../kern/kern_shutdown.c:244 #9 0xc0166917 in panic (fmt=0xc024dffe "%s") at ../../../kern/kern_shutdown.c:634 #10 0xc021a070 in trap_fatal (frame=0xca3d0a70, eva=0x1c) at ../../../i386/i386/trap.c:842 #11 0xc0219d99 in trap_pfault (frame=0xca3d0a70, usermode=0x0, eva=0x1c) at ../../../i386/i386/trap.c:756 #12 0xc02197a3 in trap (frame={tf_fs = 0x18, tf_es = 0x10, tf_ds = 0xca3d0010, tf_edi = 0x2, tf_esi = 0xc151dc00, tf_ebp = 0xca3d0acc, tf_isp = 0xca3d0a9c, tf_ebx = 0xc4b454e4, tf_edx = 0x0, tf_ecx = 0xc0b43560, tf_eax = 0x0, tf_trapno = 0xc, tf_err = 0x0, tf_eip = 0xc0178647, tf_cs = 0x8, tf_eflags = 0x10246, tf_esp = 0xc4b454e4, tf_ss = 0xc151db00}) at ../../../i386/i386/trap.c:426 #13 0xc0178647 in writedisklabel (dev=0xc151dc00, lp=0xc1351400) at ../../../kern/subr_disklabel.c:323 #14 0xc0179703 in dsioctl (dev=0xc151dc00, cmd=0x81146467, data=0xc1351600 "WEV\202", flags=0x2, sspp=0xc15190d4) at ../../../kern/subr_diskslice.c:520 #15 0xc0177a61 in diskioctl (dev=0xc151dc00, cmd=0x81146467, data=0xc1351600 "WEV\202", fflag=0x2, td=0xc98ad404) at ../../../kern/subr_disk.c:406 #16 0xc014244c in spec_ioctl (ap=0xca3d0ba4) at ../../../fs/specfs/spec_vnops.c:320 #17 0xc01420cd in spec_vnoperate (ap=0xca3d0ba4) at ../../../fs/specfs/spec_vnops.c:119 #18 0xc01aceb7 in vn_ioctl (fp=0xc1518100, com=0x81146467, data=0xc1351600 "WEV\202", td=0xc98ad404) at vnode_if.h:357 #19 0xc0183b03 in ioctl (td=0xc98ad404, uap=0xca3d0d20) at ../../../sys/file.h:200 #20 0xc021a500 in syscall (frame={tf_fs = 0x2f, tf_es = 0x2f, tf_ds = 0x2f, tf_edi = 0xbfbffe67, tf_esi = 0x806dae0, tf_ebp = 0xbfbff6f8, tf_isp = 0xca3d0d74, tf_ebx = 0xc02, tf_edx = 0x806dbf4, tf_ecx = 0x806dae0, tf_eax = 0x36, tf_trapno = 0xc, tf_err = 0x2, tf_eip = 0x804e500, tf_cs = 0x1f, tf_eflags = 0x283, tf_esp = 0xbfbff6cc, tf_ss = 0x2f}) at ../../../i386/i386/trap.c:1034 #21 0xc020e05d in syscall_with_err_pushed () #22 0x8049288 in ?? () #23 0x8048135 in ?? () (kgdb)