FreeBSD/sbin/hastd/activemap.c
/*
 * Function compare on-disk bitmap and in-memory bitmap and returns true if
 * they differ and should be flushed to the disk.
 */
Function compare on-disk bitmap and in-memory bitmap and returns true if
they differ and should be flushed to the disk.
Function compare on - disk bitmap and in - memory bitmap and returns true if they differ and should be flushed to the disk .
bool
activemap_differ(const struct activemap *amp)
{
	PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC);
	return (memcmp(amp->am_diskmap, amp->am_memmap,
	    amp->am_mapsize) != 0);
}
bool activemap_differ ( const struct activemap * amp ) { PJDLOG_ASSERT ( amp -> am_magic == ACTIVEMAP_MAGIC ) ; return ( memcmp ( amp -> am_diskmap , amp -> am_memmap , amp -> am_mapsize ) != 0 ) ; }
Function compare on-disk bitmap and in-memory bitmap and returns true if
 they differ and should be flushed to the disk.
Function compare on - disk bitmap and in - memory bitmap and returns true if they differ and should be flushed to the disk .