Hi Luca, The Zdb code maybe be a good place to start. (Zdb allows more or less the sort of exploration you are describing).
Getting the OS sources and setting up a build environment has been fairly well documented for the various distros, e.g: https://www.illumos.org/projects/illumos-gate/wiki/How_To_Build_illumos Max Bruning already did a similar "Zfs walkabout" using a hacked Zdb: http://www.google.com/url?sa=t&source=web&cd=3&ved=0CCQQFjAC&url=http%3A%2F%2Fwww.osdevcon.org%2F2008%2Ffiles%2Fosdevcon2008-max.pdf&rct=j&q=zfs%20on-disk&ei=-p7JTYiWDcPIgQe0_Oz2BQ&usg=AFQjCNH6q9Ear4Xecv5P2R5SYMoIAat3qQ&cad=rja Read the "On-Disk format" doc: http://www.google.com/url?sa=t&source=web&cd=7&ved=0CEgQFjAG&url=http%3A%2F%2Fmaczfs.googlecode.com%2Ffiles%2FZFSOnDiskFormat.pdf&rct=j&q=zfs%20on-disk&ei=-p7JTYiWDcPIgQe0_Oz2BQ&usg=AFQjCNGnXRIVQ5f3bLXNyGbNamRJOI-cBw&cad=rja It is missing some details, and is a bit dated, but still, it is the best conceptual overview of Zfs. Good luck hacking Zfs! /sG/ ----- "Luca Ferrari" <[email protected]> wrote: Hi all, I'd like to develop a program to work with a zfs filesystem, exploring it and its metadata. I'd like to know if there are examples about the usage of libzfs and the setup of a building environment. Thanks
_______________________________________________ zfs-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/zfs-code
