-
Notifications
You must be signed in to change notification settings - Fork 11
feat: capture filesystems #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Brian McGee <brian@bmcgee.ie>
638c94e to
9793a63
Compare
| "github.com/moby/sys/mountinfo" | ||
| ) | ||
|
|
||
| var specialFsRegex = regexp.MustCompile(`^(/proc|/dev|/sys|/run|/var/lib/docker|/var/lib/nfs/rpc_pipefs).*`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not entirely clear for me what's a "special" filesystem here. Makes sense to filter /proc, /sys, etc. as we are looking for block devices containing file systems. But why /var/lib/docker? Too me, this seems a bit too specific for this layer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Special" means not managed by NixOS i would say.
| f.BoolVarP(&scanner.Swap, "swap", "s", false, "capture swap entries") | ||
| f.BoolVarP(&scanner.Ephemeral, "ephemeral", "e", false, "capture all ephemeral properties e.g. swap, filesystems and so on") | ||
| f.BoolVarP(&scanner.Mounts, "mounts", "m", false, "capture filesystem mounts") | ||
| f.BoolVarP(&scanner.Ephemeral, "ephemeral", "e", false, "capture all ephemeral properties e.g. swap, mounts and so on") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ephemeral seems to contains only SwapEntries, no "mounts and so on"? Or am I misreading?
|
how is this going? |
|
Not very far. Incentives are not very high, since most of us are disko users. |
Closes #9