[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <A4596CEA-D8B5-440B-A3D9-90BC9DD7B26A@dilger.ca>
Date: Mon, 18 Dec 2017 15:48:27 -0700
From: Andreas Dilger <adilger@...ger.ca>
To: Sayan Ghosh <sgdgp.2014@...il.com>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [QUESTION] Getting block bitmap
On Dec 18, 2017, at 10:43 AM, Sayan Ghosh <sgdgp.2014@...il.com> wrote:
>
> Hello,
>
> bh = ext4_read_block_bitmap(sb,block_group);
>
> This function return the buffer head for the block/page with the block bitmap
>
> char *block_bmap = bh->b_data;
>
> Doing this does not give the block bitmap string
>
> What is the process to get the block bitmap in string or array form?
What do you mean "block bitmap string"?
It probably makes sense for you to look at how bh->b_data is being used in
the places where ext4_read_block_bitmap() is being called.
Cheers, Andreas
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists