MCPcopy
hub / github.com/lxc/incus / rsyncFeatureArgs

Function rsyncFeatureArgs

internal/rsync/rsync.go:417–433  ·  view source on GitHub ↗
(features []string)

Source from the content-addressed store, hash-verified

415}
416
417func rsyncFeatureArgs(features []string) []string {
418 args := []string{}
419 if slices.Contains(features, "xattrs") {
420 args = append(args, "--xattrs", "--filter=-x security.selinux")
421 }
422
423 if slices.Contains(features, "delete") {
424 args = append(args, "--delete")
425 }
426
427 if slices.Contains(features, "compress") {
428 args = append(args, "--compress")
429 args = append(args, "--compress-level=2")
430 }
431
432 return args
433}

Callers 2

sendSetupFunction · 0.85
RecvFunction · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…