Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RroVU-0007nj-Vs for mharc-grub-devel@gnu.org; Mon, 30 Jan 2012 05:30:40 -0500 Received: from eggs.gnu.org ([140.186.70.92]:43047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RroVL-0007mu-QT for grub-devel@gnu.org; Mon, 30 Jan 2012 05:30:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RroVD-0006VM-P4 for grub-devel@gnu.org; Mon, 30 Jan 2012 05:30:31 -0500 Received: from fmmailgate04.web.de ([217.72.192.242]:37507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RroVD-0006V4-F9 for grub-devel@gnu.org; Mon, 30 Jan 2012 05:30:23 -0500 Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate04.web.de (Postfix) with ESMTP id 7B38A7135388 for ; Mon, 30 Jan 2012 11:30:21 +0100 (CET) Received: from frosties.localnet ([95.208.118.96]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0LnjRP-1SWN2g0tJf-00hagy; Mon, 30 Jan 2012 11:30:21 +0100 Received: from mrvn by frosties.localnet with local (Exim 4.77) (envelope-from ) id 1RroVA-0003Kq-5Z for grub-devel@gnu.org; Mon, 30 Jan 2012 11:30:20 +0100 From: Goswin von Brederlow To: The development of GNU GRUB Subject: Re: [RFC] FIEMAP and disk sync issues References: <4F22A683.4020607@gmail.com> Date: Mon, 30 Jan 2012 11:30:20 +0100 In-Reply-To: <4F22A683.4020607@gmail.com> (Vladimir Serbinenko's message of "Fri, 27 Jan 2012 14:28:35 +0100") Message-ID: <874nvd4h4z.fsf@frosties.localnet> User-Agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Provags-ID: V02:K0:4Fv2+hbREH2PfgzSy+SxvPKPG6ZSeCb+oOPSIK8zaFp X+KPel0qJFphNv89dPOH3CHfb/INTDwMQDo7nv5aZ1RvNsCz4F 4jmsdouhRHgb4kvceQV+Pnc9FzdsEyfHaLUdKNbSMraqUJgECT w6guAiiXRVJtdougcYgP38hQpDxNdCpy/lvSeqnSVNZO2aaZWN 3IkaJfKFw0iwMjGjA/bmw== Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.242 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 10:30:39 -0000 "Vladimir '=CF=86-coder/phcoder' Serbinenko" writes: > Another problem with FIBMAP/FIEMAP is that fuse-mounted BFS lacks them > altogether. We will need to find some other way of doing BFS install. > Also some COW filesystems may supply a somewhat valid blocklist with > FIBMAP/FIEMAP but which is unusable to GRUB because of COW nature. So > we need an FS-whitelist. > Experiment patch attached. > Any thoughts? The fuse/lowlevel.h has: /** * Map block index within file to block index within device * * Note: This makes sense only for block device backed filesystem= s * mounted with the 'blkdev' option * * Introduced in version 2.6 * * Valid replies: * fuse_reply_bmap * fuse_reply_err * * @param req request handle * @param ino the inode number * @param blocksize unit of block index * @param idx block index within file */ void (*bmap) (fuse_req_t req, fuse_ino_t ino, size_t blocksize, uint64_t idx); /** * Reply with block index * * Possible requests: * bmap * * @param req request handle * @param idx block index within device * @return zero for success, -errno for failure to send reply */ int fuse_reply_bmap(fuse_req_t req, uint64_t idx); So it is a matter of implementing the right callback in BFS to support FIBMAP/FIEMAP. Same for ntfs3g. MfG Goswin