From 9bcde0c09e96e17ed7092aa5fa5f6bfc89372a8d Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 30 Nov 2017 20:53:38 +0100 Subject: fusefrontend: Improve documentation of mkdirWithIv and WriteDirIV As requested in https://github.com/rfjakob/gocryptfs/pull/179 --- internal/fusefrontend/fs_dir.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/fusefrontend/fs_dir.go') 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 -- cgit v1.2.3