diff options
author | Sebastian Lackner | 2017-11-30 20:53:38 +0100 |
---|---|---|
committer | rfjakob | 2017-12-01 09:41:52 +0100 |
commit | 9bcde0c09e96e17ed7092aa5fa5f6bfc89372a8d (patch) | |
tree | 645734db4d3959839ad013a7c9406c14e678403d /internal/fusefrontend | |
parent | e97c23e08383666117523cf3145f1213b41c2489 (diff) |
fusefrontend: Improve documentation of mkdirWithIv and WriteDirIV
As requested in https://github.com/rfjakob/gocryptfs/pull/179
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r-- | internal/fusefrontend/fs_dir.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go index 5cc269b..ae52412 100644 --- a/internal/fusefrontend/fs_dir.go +++ b/internal/fusefrontend/fs_dir.go @@ -24,6 +24,9 @@ import ( const dsStoreName = ".DS_Store" +// mkdirWithIv - create a new directory and corresponding diriv file. dirfd +// should be a handle to the parent directory, cName is the name of the new +// directory and mode specifies the access permissions to use. func (fs *FS) mkdirWithIv(dirfd *os.File, cName string, mode uint32) error { // Between the creation of the directory and the creation of gocryptfs.diriv // the directory is inconsistent. Take the lock to prevent other readers |