panic: handle_written_inodeblock: bad size

Kirk McKusick mckusick at mckusick.com
Tue Jul 20 16:00:14 UTC 2010


You are on the right track with getting the filesystem information.
Any place that one has an inode (say pointer ip), it is possible
to get the filesystem information using ip->i_fs->fs_fsmnt. The
mount point can also be found from the mount-point structure.
So, it is almost always possible to make your way to fs_fsmnt.
Since soft updates only runs on mounted filesystems, you will never
have a case where the fs_fsmnt has not been filled in for you.

You are right that you do not want to add a global variable.
Instead the fs_fsmnt should just be gathered from where-ever it 
is available. Adding it to all the panic's will be a lot of work,
but I agree would be useful. I will look into doing so when I
get a chance.

	Kirk McKusick


More information about the freebsd-fs mailing list