diff options
Diffstat (limited to 'pathfs_frontend')
-rw-r--r-- | pathfs_frontend/fs.go | 2 | ||||
-rw-r--r-- | pathfs_frontend/fs_dir.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pathfs_frontend/fs.go b/pathfs_frontend/fs.go index 97ad525..a00985d 100644 --- a/pathfs_frontend/fs.go +++ b/pathfs_frontend/fs.go @@ -305,7 +305,7 @@ func (fs *FS) Rename(oldPath string, newPath string, context *fuse.Context) (cod } // The Rename may cause a directory to take the place of another directory. // That directory may still be in the DirIV cache, clear it. - fs.CryptFS.DirIVCacheEnc.Clear() + fs.CryptFS.DirIVCache.Clear() err = os.Rename(cOldPath, cNewPath) diff --git a/pathfs_frontend/fs_dir.go b/pathfs_frontend/fs_dir.go index 9d2d2c9..b1edd73 100644 --- a/pathfs_frontend/fs_dir.go +++ b/pathfs_frontend/fs_dir.go @@ -29,7 +29,7 @@ func (fs *FS) Mkdir(relPath string, mode uint32, context *fuse.Context) (code fu mode = mode | 0300 // The new directory may take the place of an older one that is still in the cache - fs.CryptFS.DirIVCacheEnc.Clear() + fs.CryptFS.DirIVCache.Clear() // Create directory fs.dirIVLock.Lock() defer fs.dirIVLock.Unlock() @@ -148,6 +148,6 @@ func (fs *FS) Rmdir(name string, context *fuse.Context) (code fuse.Status) { cryptfs.Warn.Printf("Rmdir: Could not clean up %s: %v", tmpName, err) } // The now-deleted directory may have been in the DirIV cache. Clear it. - fs.CryptFS.DirIVCacheEnc.Clear() + fs.CryptFS.DirIVCache.Clear() return fuse.OK } |