Skip to content

Check mount support multiple drives - #445

Open
inqrphl wants to merge 6 commits into
mainfrom
check-mount-support-multiple-drives
Open

Check mount support multiple drives#445
inqrphl wants to merge 6 commits into
mainfrom
check-mount-support-multiple-drives

Conversation

@inqrphl

@inqrphl inqrphl commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

change the argument to be an []string and adjust loops in the code relating to mount checks

check_mount: ai assisted , add tests for multiple mounts

PS C:\Users\sorus\repositories\snclient.worktrees\check-mount-support-multiple-drives> .\snclient.windows.amd64.exe -vvv --logfile stdout run check_mount show-all
OK - mount C: , mount D: , mount E: , mount F: , mount G: , mount H: , mount I:
PS C:\Users\sorus\repositories\snclient.worktrees\check-mount-support-multiple-drives> .\snclient.windows.amd64.exe -vvv --logfile stdout run check_mount mount=C: mount=D:
OK - 2 mount(s) as expected
PS C:\Users\sorus\repositories\snclient.worktrees\check-mount-support-multiple-drives> .\snclient.windows.amd64.exe -vvv --logfile stdout run check_mount mount=C: mount=D: mount=X: mount=Y:
CRITICAL - critical(mount X: not mounted, mount Y: not mounted)
~/repositories/snclient.worktrees/check-mount-support-multiple-drives$ ./snclient -vvv --logfile stdout run check_mount
OK - 3 mount(s) as expected
~/repositories/snclient.worktrees/check-mount-support-multiple-drives$ ./snclient -vvv --logfile stdout run check_mount mount=/ mount=/boot
OK - 2 mount(s) as expected
~/repositories/snclient.worktrees/check-mount-support-multiple-drives$  ./snclient -vvv --logfile stdout run check_mount mount=/ mount=/boot filter='device eq /dev/dm-0'
OK - 1 mount(s) as expected

Comment thread pkg/snclient/check_mount.go Outdated
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.

2 participants