[Bug 205816] [ext2fs] [patch] EXT4 sparse blocks unsupported, contain garbage when read

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 14 11:09:13 UTC 2016


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

nowak at tepeserwery.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nowak at tepeserwery.pl

--- Comment #15 from nowak at tepeserwery.pl ---
(In reply to Damjan Jovanovic from comment #0)

There is "zero_region" that can be used here instead of the static array.

while (xfersize > 0) {
        ssize_t len = MIN(xfersize, ZERO_REGION_SIZE);
        error = uiomove(__DECONST(void *, zero_region), len, uio);
        if (error) {
                return error;
        }
        xfersize -= len;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-fs mailing list