package command import ( "context" "fmt" "io" "os" "strings" "time" "google.golang.org/grpc" "github.com/seaweedfs/seaweedfs/weed/filer" "github.com/seaweedfs/seaweedfs/weed/pb" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants" "github.com/seaweedfs/seaweedfs/weed/security" "github.com/seaweedfs/seaweedfs/weed/util" ) func init() { cmdFilerMetaScan.Run = runFilerMetaScan // break init cycle } var cmdFilerMetaScan = &Command{ UsageLine: "filer.meta.scan -pathPrefix=/some/dir [-since=...] [-until=...]", Short: "audit what happened under a directory, one line per change", Long: `Replay the filer's metadata log for one directory and print one line per change. Unlike filer.meta.tail this stops when it reaches the end of the requested range instead of following, so it can be piped straight into grep or awk. Each line is: