diff options
| author | ebiggers <ebiggers@google.com> | 2020-01-23 13:41:42 -0800 |
|---|---|---|
| committer | Joseph Richey <joerichey@google.com> | 2020-01-23 13:41:42 -0800 |
| commit | f2eb79fb5fb10275c014b55c13e28ff02d3b70a8 (patch) | |
| tree | 84c9595d1bd9e13564d79ba5de7d366ca34c0b48 /filesystem/mountpoint.go | |
| parent | 303616dc52e2b1e71883417a291f07c59025215d (diff) | |
filesystem: remove canonicalizePath() (#185)
canonicalizePath() is now only used by an error path in
getMountFromLink(), which we can make use getDeviceName() instead.
Diffstat (limited to 'filesystem/mountpoint.go')
| -rw-r--r-- | filesystem/mountpoint.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filesystem/mountpoint.go b/filesystem/mountpoint.go index 6119be8..edbdc85 100644 --- a/filesystem/mountpoint.go +++ b/filesystem/mountpoint.go @@ -319,9 +319,8 @@ func getMountFromLink(link string) (*Mount, error) { } mnt, ok := mountsByDevice[deviceNumber] if !ok { - devicePath, _ := canonicalizePath(searchPath) return nil, errors.Wrapf(ErrFollowLink, "no mounts for device %q (%v)", - devicePath, deviceNumber) + getDeviceName(deviceNumber), deviceNumber) } if mnt == nil { return nil, filesystemRootDirNotVisibleError(deviceNumber) |