NetBSD-Bugs archive

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

kern/41016: cgd does not implement DIOCCACHESYNC



>Number:         41016
>Category:       kern
>Synopsis:       cgd does not implement DIOCCACHESYNC
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 14 15:10:00 +0000 2009
>Originator:     Alan Barrett
>Release:        NetBSD 5.99.7
>Organization:
Not much
>Environment:
System: NetBSD 5.99.7 i386
>Description:
        The DIOCCACHESYNC ioctl is undocumented, but wapbl(4) relies on
        it to flush the disk cache.  The cgd driver does not implement
        this ioctl, so crashes while writing to a file system on a vnd
        are likely to encounter more corruptioon than they should.
>How-To-Repeat:
        Code inspection
>Fix:
        A DIOCCACHESYNC at the cgd level should become a DIOCCACHESYNC
        on the underlying disk device.  At present, the cgd layer simply
        passes the ioctl on to dk_ioctl(), which does not implement it.



Home | Main Index | Thread Index | Old Index