cmd/mount: --fast-list does nothing on a mount

This commit is contained in:
Ivan Andreev 2021-08-13 20:42:33 +03:00
parent 3615619645
commit 448a03181f

View file

@ -1,6 +1,7 @@
package mountlib package mountlib
import ( import (
"context"
"log" "log"
"os" "os"
"path/filepath" "path/filepath"
@ -128,6 +129,10 @@ func NewMountCommand(commandName string, hidden bool, mount MountFn) *cobra.Comm
Run: func(command *cobra.Command, args []string) { Run: func(command *cobra.Command, args []string) {
cmd.CheckArgs(2, 2, command, args) cmd.CheckArgs(2, 2, command, args)
if fs.GetConfig(context.Background()).UseListR {
fs.Logf(nil, "--fast-list does nothing on a mount")
}
if Opt.Daemon { if Opt.Daemon {
config.PassConfigKeyForDaemonization = true config.PassConfigKeyForDaemonization = true
} }