Updates for FreeBSD

This commit is contained in:
Michiel Broek
2004-03-21 13:28:37 +00:00
parent 366cce3858
commit 85c892cc12
2 changed files with 3 additions and 2 deletions

View File

@@ -244,7 +244,8 @@ void update_diskstat(void)
*/
tmp->ro = (strstr(tmp->fstype, "iso") != NULL);
#elif defined(__FreeBSD__) || defined(__NetBSD__)
Syslog('-', "%s %d", tmp->mountpoint, sfs.f_flags);
tmp->ro = (sfs.f_flags & MNT_RDONLY);
// Syslog('-', "%s %d %d", tmp->mountpoint, sfs.f_flags, sfs.f_flags & MNT_RDONLY);
#endif
}
}