diff --git a/mbmon/mbmon.c b/mbmon/mbmon.c index 84624540..f9a188a3 100644 --- a/mbmon/mbmon.c +++ b/mbmon/mbmon.c @@ -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)) diff --git a/mbtask/taskdisk.c b/mbtask/taskdisk.c index 7266ff65..dded2eb3 100644 --- a/mbtask/taskdisk.c +++ b/mbtask/taskdisk.c @@ -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 } }