Skip to content
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

replacing df with ls for nfs check #130

Merged
merged 1 commit into from
Jul 11, 2021
Merged

Conversation

pygmymarmoset
Copy link

The check_nfs df breaks and exits 1 on large nfs shares and causes the camera to keep rebooting.

[root@WyzeCam-C428:~]# df || echo broken 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 3712      3712         0 100% /
tmpfs                    45736       652     45084   1% /dev
tmpfs                    45736       940     44796   2% /tmp
tmpfs                    45736         8     45728   0% /run
media                    45736         0     45736   0% /media
/dev/mtdblock3            3584      3584         0 100% /system
/dev/mtdblock6             384       120       264  31% /configs
df: /mnt: Value too large for defined data type
df: /media/mmcblk0p1: Value too large for defined data type
broken
[root@WyzeCam-C428:~]#

Using ls should provide the same functionality (verifying nfs is working), and works correctly in my testing (shut down nfs server and it failed as expected).

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