-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DOCUMENT_ID and WRITE_GENCOUNT support
Add new getattr fields DOCUMENT_ID and WRITE_GENCOUNT. Implement new HFS ioctl HFS_GETPATH,HFS_TRANSFER_DOCUMENT_ID,F_MAKECOMPRESSED Add new chflags (zfs_setbsdflag) UF_TRACKED, to store DOCUMENT_ID in the SA attributes. Update sa.c to ZOL's latest, more correct version. TODO: HFS, once UF_TRACKED is set, if file is deleted, then recreated with same name, it will get UF_TRACKED set again. Our DocumentID will match, but we do not set UF_TRACKED. Suggested implementation is to store DocumentID in a list, in zfs_remove for UF_TRACKED objects. Then in getattr for DocumentID (when "not set"->"set") scan the list, and on match, call zfs_setattr_set_documentid. List need not survive unmount.
- Loading branch information
Showing
5 changed files
with
475 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.