aboutsummaryrefslogtreecommitdiff
path: root/internal/nametransform
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/nametransform
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/nametransform')
-rw-r--r--internal/nametransform/longnames.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/nametransform/longnames.go b/internal/nametransform/longnames.go
index 6788ce6..f0f0490 100644
--- a/internal/nametransform/longnames.go
+++ b/internal/nametransform/longnames.go
@@ -99,7 +99,7 @@ func ReadLongNameAt(dirfd int, cName string) (string, error) {
// DeleteLongName deletes "hashName.name" in the directory openend at "dirfd".
//
// This function is symlink-safe through the use of Unlinkat().
-func DeleteLongName(dirfd int, hashName string) error {
+func DeleteLongNameAt(dirfd int, hashName string) error {
err := syscallcompat.Unlinkat(dirfd, hashName+LongNameSuffix, 0)
if err != nil {
tlog.Warn.Printf("DeleteLongName: %v", err)
@@ -112,7 +112,7 @@ func DeleteLongName(dirfd int, hashName string) error {
// Base()named internally.
//
// This function is symlink-safe through the use of Openat().
-func (n *NameTransform) WriteLongName(dirfd int, hashName string, plainName string) (err error) {
+func (n *NameTransform) WriteLongNameAt(dirfd int, hashName string, plainName string) (err error) {
plainName = filepath.Base(plainName)
// Encrypt the basename