Skip to content

Commit 3ca1df4

Browse files
committed
Remove mandatory /share prefix requirement for extreme nas
1 parent 5be8fbb commit 3ca1df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/nas/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func doMount(mounter mountutils.Interface, opt *Options, targetPath, volumeId, p
130130
}
131131

132132
rootPath := "/"
133-
if opt.FSType == "cpfs" || mountFstype == MountProtocolCPFSNFS || strings.Contains(opt.Server, "extreme.nas.aliyuncs.com") {
133+
if opt.FSType == "cpfs" || mountFstype == MountProtocolCPFSNFS {
134134
rootPath = "/share"
135135
}
136136
relPath, relErr := filepath.Rel(rootPath, opt.Path)

0 commit comments

Comments
 (0)