Date: Tue, 20 Jul 2010 08:44:51 -0700 From: Kirk McKusick <mckusick@mckusick.com> To: Jeremy Chadwick <freebsd@jdc.parodius.com> Cc: "Mikhail T." <mi+thun@aldan.algebra.com>, fs@freebsd.org Subject: Re: panic: handle_written_inodeblock: bad size Message-ID: <201007201544.o6KFipaV084986@chez.mckusick.com> In-Reply-To: <20100720134931.GA41352@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007201544.o6KFipaV084986>