[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-fs
Subject:    [Bug 198789] Panic while mounting an NANDFS filesystem
From:       bugzilla-noreply () freebsd ! org
Date:       2015-03-28 17:38:00
Message-ID: bug-198789-3630-IbGAyEVBVh () https ! bugs ! freebsd ! org/bugzilla/
[Download RAW message or body]

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198789

--- Comment #1 from Stefan Berndt <stefan.berndt@imoriath.com> ---
After some research i figured something out. Seems the used buffers are moved
from in-core to not-in-core. The function "getblk" in src/sys/kern/vfs_bio.c
(line 3064-3308) now needs to create a new buffer instead of using a existing
in-core-buffer. This requires an correct set sector size in line 3230, but it
is 0.

Index: src/sys/fs/nandfs/nandfs_subr.c
===================================================================
--- src/sys/fs/nandfs/nandfs_subr.c    (revision 280320)
+++ src/sys/fs/nandfs/nandfs_subr.c    (working copy)
@@ -210,6 +210,9 @@
     DPRINTF(BLOCK, ("%s: vp:%p lbn:%#jx\n", __func__, NTOV(node),
         blocknr));

+    if (node->nn_vnode->v_bufobj.bo_bsize == 0)
+        node->nn_vnode->v_bufobj.bo_bsize = 512;
+
     error = bread(NTOV(node), blocknr, node->nn_nandfsdev->nd_blocksize,
         cred, bpp);


This does the job, it is now working, but i don't belive it's the right way to
do this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-fs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic