NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/38057: ffs makes assuptions about devvp file system



The following reply was made to PR kern/38057; it has been noted by GNATS.

From: yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi)
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
netbsd-bugs%netbsd.org@localhost,
        pooka%iki.fi@localhost
Subject: Re: kern/38057: ffs makes assuptions about devvp file system
Date: Wed, 20 Feb 2008 23:38:35 +0900 (JST)

 >  This is an even more obvious problem for some code yet to be checked in,
 >  that it is for softdep.  I was thinking if it could be fixed in a general
 >  manner by requiring that VBLK devvp has the properies of the file system
 >  it is used for instead of the file system that the node resides on.
 
 how about:
 
        flush_buffers_for_fsync(vp)
        {
                mp = vp->v_specmountpoint;
                if (mp != NULL) {
                        VFS_foo(mp, vp);
                } else {
                        vflushbuf();
                }
        }
 
 YAMAMOTO Takashi
 


Home | Main Index | Thread Index | Old Index