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

@ -373,7 +373,7 @@ void disk_stat(void)
mvprintw(i+8, 1, "%8lu %8lu ", size, used);
set_color(WHITE, BLACK);
printf("%c ", sign);
if (strstr(type, "iso") == NULL) {
if ((strstr(type, "iso") == NULL) && (strstr(type, "9660") == NULL)) {
if (avail <= CFG.freespace)
set_color(LIGHTRED, BLACK);
else if (avail <= (CFG.freespace * 4))

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
}
}