{"push_id":575518361,"size":2,"distinct_size":2,"ref":"refs/heads/fixsnap2","head":"4bdaed0d6bb17bdd694f42beb4c71a78e98e338a","before":"ef88eb38fa95f41e673650625551431716596bb2","commits":[{"sha":"2a8749ad70dcb3d1b57b46bfb8f9800bba7274e0","author":{"email":"7f7e1535bcd10fa942d56a3436533af20f33203f@gmail.com","name":"Yuxuan Shui"},"message":"Add helper function to get mount path of a dataset\n\nThis will be used in later commit which add support for decoding\nsnapshot fh. This is needed because in case the snapshot is not mounted\nwhen decoding its fh, we have to trigger an automount. And to trigger a\nsnapshot automount, we have to know its path.\n\nIn this commit we add a helper function which get the mount path from\nzpool and dataset properties (namely altroot and mountpoint\nproperties). This is practically the same method used by the userspace\nzfs commandline tool. This method won't work for dataset with 'legacy'\nmountpoint, but we have to do it this way because newer Linux\nkernel hides the mount point information from file systems.\n\nTheoretically the proper solution of the problem is to eliminate the\nneed to mount a snapshot, and just generate all snapshot related information\non access. However this will require a lot more work and probably\nsignificant changes to how zfs handle snapshots. So I think we better\nleave this for later.\n\nSigned-off-by: Yuxuan Shui <yshuiv7@gmail.com>","distinct":true,"url":"https://api.github.com/repos/yshui/zfs/commits/2a8749ad70dcb3d1b57b46bfb8f9800bba7274e0"},{"sha":"4bdaed0d6bb17bdd694f42beb4c71a78e98e338a","author":{"email":"3b55b1b4fdd6c57a0901678680641ec226477e5a@gmail.com","name":"Andrey Vesnovaty"},"message":"Add encode and decode support for snapshot fh\n\nThe snapshot file handle should provide enough info in order to get the right\nobjsetid and right object in the objset defined by objsetid. Therefore\nwe encode the snapshot fh as objsetid + inode.\n\nThe objsetid should be encoded for every snapshot dentry including root dentry;\nfor snapshot root dentry zf_gen should be 0.\n\nTo decode a snapshot fh, we simply extract the objsetid and the inode,\nthen we try to retrive the super block stored in the snapentry. Zero matching\nsnapentry means the snapshot is not mounted. In this case we try to\ntrigger a automount of the snapshot by doing a path lookup on the full\nsnapshot path, and then try again.\n\nIf zf_gen is 0, we return the snapshot root dentry.\n\nAlso added a configure check for kern_path, since it is not available\nin earlier kernels.\n\nSigned-off-by: Andrey Vesnovaty <andrey.vesnovaty@gmail.com>\nSigned-off-by: Yuxuan Shui <yshuiv7@gmail.com>","distinct":true,"url":"https://api.github.com/repos/yshui/zfs/commits/4bdaed0d6bb17bdd694f42beb4c71a78e98e338a"}]}