getgen: add get generation of datasetThe ioctl GG_IOC_GET_GENERATION is extended to deliver the generationof a dataset instead of the one of a file. inode value 0 is used forthis case.refs #3810
further lint fixes
getgen: lock zfsvfs for znode operationsAkin to zfs' other znode ops, getgen now uses (a modified versionof) ZFS_ENTER, ZFS_VERIFY_ZP and ZFS_EXIT to protect againstoperations on unmounted object
getgen: lock zfsvfs for znode operationsAkin to zfs' other znode ops, getgen now uses (a modified versionof) ZFS_ENTER, ZFS_VERIFY_ZP and ZFS_EXIT to protect againstoperations on unmounted object sets.
show more ...
zev fix: ds_phys was replaced by dsl_dataset_phys().replaced by commit 8d62b2231107commit msg: 5314 Remove "dbuf phys" db->db_data pointeraliases in ZFS
getgen: bugfix, avoid using wrong zfsvfs pointer
getgen driver added for znode info ioctl()sThe getgen driver provides an ioctl() that can give informationabout an inode to userspace that is normally unavailable, such asthe generation number an
getgen driver added for znode info ioctl()sThe getgen driver provides an ioctl() that can give informationabout an inode to userspace that is normally unavailable, such asthe generation number and the crtime.The inode has to be on a ZFS filesystem, and an open fd to anyfile on the same filesystem needs to be provided.