aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/fs_dir.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-11-04 22:05:38 +0100
committerJakob Unterwurzacher2019-01-01 16:24:25 +0100
commit2de3851abddd26949b72b9b255ce836fc93ed284 (patch)
treee7be53226bbe58fbb243617d5e46e6f7f83c4217 /internal/fusefrontend/fs_dir.go
parent4fae240153a5300b7108bf5c2de2b6581c8ee7fd (diff)
nametransform: rename WriteLongName() -> WriteLongNameAt()
And also rename DeleteLongName() -> DeleteLongNameAt(). The naming follow the names open the openat() etc syscalls.
Diffstat (limited to 'internal/fusefrontend/fs_dir.go')
-rw-r--r--internal/fusefrontend/fs_dir.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go
index 9486802..5a6bc9d 100644
--- a/internal/fusefrontend/fs_dir.go
+++ b/internal/fusefrontend/fs_dir.go
@@ -84,7 +84,7 @@ func (fs *FS) Mkdir(newPath string, mode uint32, context *fuse.Context) (code fu
// Handle long file name
if nametransform.IsLongContent(cName) {
// Create ".name"
- err = fs.nameTransform.WriteLongName(dirfd, cName, newPath)
+ err = fs.nameTransform.WriteLongNameAt(dirfd, cName, newPath)
if err != nil {
return fuse.ToStatus(err)
}
@@ -92,7 +92,7 @@ func (fs *FS) Mkdir(newPath string, mode uint32, context *fuse.Context) (code fu
// Create directory
err = fs.mkdirWithIv(dirfd, cName, mode)
if err != nil {
- nametransform.DeleteLongName(dirfd, cName)
+ nametransform.DeleteLongNameAt(dirfd, cName)
return fuse.ToStatus(err)
}
} else {
@@ -253,7 +253,7 @@ retry:
}
// Delete .name file
if nametransform.IsLongContent(cName) {
- nametransform.DeleteLongName(parentDirFd, cName)
+ nametransform.DeleteLongNameAt(parentDirFd, cName)
}
// The now-deleted directory may have been in the DirIV cache. Clear it.
fs.nameTransform.DirIVCache.Clear()