Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2016 11:09:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 205816] [ext2fs] [patch] EXT4 sparse blocks unsupported, contain garbage when read
Message-ID:  <bug-205816-3630-soLij5t9ec@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-205816-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-205816-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205816

nowak@tepeserwery.pl changed:

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

--- Comment #15 from nowak@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 =3D MIN(xfersize, ZERO_REGION_SIZE);
        error =3D uiomove(__DECONST(void *, zero_region), len, uio);
        if (error) {
                return error;
        }
        xfersize -=3D len;
}

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205816-3630-soLij5t9ec>