Subject: kern/7624: panic while mounting a ntfs filesystem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <matthieu@laas.fr>
List: netbsd-bugs
Date: 05/22/1999 12:35:55
>Number:         7624
>Category:       kern
>Synopsis:       panic while mounting a ntfs filesystem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 22 12:35:01 1999
>Last-Modified:
>Originator:     Matthieu Herrb
>Organization:
	
>Release:        NetBSD-current 05/21/1999
>Environment:

System: NetBSD bluenote 1.4C NetBSD 1.4C (BLUENOTE) #3: Sat May 22 19:55:32 CEST 1999 matthieu@bluenote:/local/NetBSD/src/sys/arch/i386/compile/BLUENOTE i386


>Description:

I tried to mount the NTFS partition of my NetBSD disk, using
the new ntfs filesystem in NetBSD 1.4C. `mount -r -t ntfs
/dev/wd0h /nt' made the kernel panic. Here's a trace from the
core:

(gdb) ta kcore netbsd.1.core
panic: getblk: block size invariant failed
#0  0xf014507a in incore ()
(gdb) bt
#0  0xf014507a in incore ()
#1  0xf01dd273 in cpu_reboot ()
#2  0xf0131a71 in panic ()
#3  0xf0145188 in getblk ()
#4  0xf0144aa1 in bread ()
#5  0xf01b8a02 in ntfs_readntvattr_plain ()
#6  0xf01b8d9e in ntfs_readattr_plain ()
#7  0xf01b9191 in ntfs_readattr ()
#8  0xf01b9a0e in ntfs_mountfs ()
#9  0xf01b957f in ntfs_mount ()
#10 0xf014ba26 in sys_mount ()
#11 0xf01e4046 in syscall ()

Here's my disklabel in case it helps:

# /dev/wd0d:
type: ST506
disk: mydisk
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 13424
total sectors: 12685680
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

8 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:   305235  4192965     4.2BSD     1024  8192    16   # (Cyl. 4437 - 4759)
  b:   263655  4498200       swap                        # (Cyl. 4760 - 5038)
  c:  8321670  4192965     unused        0     0         # (Cyl. 4437 - 13242)
  d: 12685680        0     unused        0     0         # (Cyl.    0 - 13423)
  e:  1137780  4761855     4.2BSD     1024  8192    16   # (Cyl. 5039 - 6242)
  f:  6615000  5899635     4.2BSD     1024  8192    16   # (Cyl. 6243 - 13242)
  h:  4192902       63      MSDOS                        # (Cyl.    0*- 4436)

>How-To-Repeat:

See above.
>Fix:

Unknown.
>Audit-Trail:
>Unformatted: