Mounting a filesystem on a HAST provider without HAST
Lorenzo Perone
lopez.on.the.lists at yellowspace.net
Sat Nov 29 15:42:24 UTC 2014
On 29.11.14 13:31, Mykola Golub wrote:
> You can obtain the offset by running `hastctl dump' command (localcnt
> field).
>
> If you still want to calulate it yourself, see how hastctl calculates
> hr_localoff in sbin/hastctl/hastctl.c:create_one() with the help of
> sbin/hastd/metadata.c:activemap_calc_ondisk_size(). In short, you need
> to calculate number of extents (mediasize / extentsize) and reserve a
> bit for every extent in the map, rounding up to the sector size.
Thanks a lot for both pointers! hastctl dump will do perfectly well for
now, it can easilly be wrapped in a local shell script.
Greetings and Regards,
Lorenzo
More information about the freebsd-fs
mailing list