mkfs, mkproto: minor improvements
[minix.git] / servers / mfs / clean.h
blob427696b2a3ade92eead63a542903e9bca18f83fb
2 #ifndef _MFS_CLEAN_H
3 #define _MFS_CLEAN_H 1
5 #define MARKDIRTY(b) do { if(superblock.s_dev == lmfs_dev(b) && superblock.s_rd_only) { printf("%s:%d: dirty block on rofs! ", __FILE__, __LINE__); util_stacktrace(); } else { lmfs_markdirty(b); } } while(0)
6 #define MARKCLEAN(b) lmfs_markclean(b)
8 #define ISDIRTY(b) (!lmfs_isclean(b))
9 #define ISCLEAN(b) (lmfs_isclean(b))
11 #endif