badblocks.c (main): Open the device as O_RDWR if possible, since
	fsync() isn't guaranteed to work if the filesystem is
	opened read-only.

2 files changed