aboutsummaryrefslogtreecommitdiff
path: root/pathfs_frontend
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-02-06 12:27:09 +0100
committerJakob Unterwurzacher2016-02-06 12:27:55 +0100
commitadcfbd79a8b8bb85cbee25996ab622a05de0dbc1 (patch)
tree975b053ba075ba1d6ec5236dd580848a39334b1b /pathfs_frontend
parent1573efec98bd96a078afdf5d1584436b07dac165 (diff)
Rename DirIVCacheEnc to just DirIVCache
...and unexport dirIVCache
Diffstat (limited to 'pathfs_frontend')
-rw-r--r--pathfs_frontend/fs.go2
-rw-r--r--pathfs_frontend/fs_dir.go4
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
}