NetBSD-Users archive

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

Re: How does NetBSD handle fsync() that incurs I/O errors?



rhialto%falu.nl@localhost (Rhialto) writes:

>As far as I know, NetBSD leaves dirty buffers marked dirty in case of
>error, so that they are retried again later. Is my understanding right?

I doubt that:

        /* If it's not cacheable, or an error, mark it invalid. */
        if (ISSET(bp->b_cflags, BC_NOCACHE) || bp->b_error != 0)
                SET(bp->b_cflags, BC_INVAL);

After an error the data is thrown away.
-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index