From adcfbd79a8b8bb85cbee25996ab622a05de0dbc1 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 6 Feb 2016 12:27:09 +0100 Subject: Rename DirIVCacheEnc to just DirIVCache ...and unexport dirIVCache --- pathfs_frontend/fs.go | 2 +- pathfs_frontend/fs_dir.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pathfs_frontend') 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 } -- cgit v1.2.3