Skip to content

Conversation

@brianmcgee
Copy link
Collaborator

@brianmcgee brianmcgee commented Aug 13, 2024

Closes #9

@brianmcgee brianmcgee changed the title wip: capture filesystems feat: capture filesystems Aug 13, 2024
Signed-off-by: Brian McGee <brian@bmcgee.ie>
@brianmcgee brianmcgee force-pushed the feat/capture-filesystems branch from 638c94e to 9793a63 Compare August 13, 2024 10:23
"github.com/moby/sys/mountinfo"
)

var specialFsRegex = regexp.MustCompile(`^(/proc|/dev|/sys|/run|/var/lib/docker|/var/lib/nfs/rpc_pipefs).*`)
Copy link
Member

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.

Copy link
Member

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")
Copy link
Member

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?

@NikOverflow
Copy link

how is this going?

@Mic92
Copy link
Member

Mic92 commented Aug 29, 2025

Not very far. Incentives are not very high, since most of us are disko users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Capture mounted filesystems

4 participants