From 2de3851abddd26949b72b9b255ce836fc93ed284 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 4 Nov 2018 22:05:38 +0100 Subject: nametransform: rename WriteLongName() -> WriteLongNameAt() And also rename DeleteLongName() -> DeleteLongNameAt(). The naming follow the names open the openat() etc syscalls. --- internal/nametransform/longnames.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/nametransform') 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 -- cgit v1.2.3