Whamcloud - gitweb
Fix FreeBSD portability problem caused by it using character mode disk devices
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Aug 2017 22:04:11 +0000 (18:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Aug 2017 22:17:26 +0000 (18:17 -0400)
commitf61aa76e456567b622cb0b6e5eb33de394600948
treeceb79ff064bf5fb6b3b140dc86147c10a05b648b
parent3242252453a9088ca0f54161bd8d7fd32dff9591
Fix FreeBSD portability problem caused by it using character mode disk devices

We were using S_ISBLK() to test if a device could be used as a disk
device.  This doesn't work for FreeBSD.  We need to test for S_ISBLK()
|| S_ISCHR().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/blkid/blkidP.h
lib/blkid/devname.c
lib/blkid/devno.c
lib/blkid/getsize.c
lib/ext2fs/blkmap64_rb.c
lib/ext2fs/ext2fsP.h
lib/ext2fs/finddev.c
lib/ext2fs/ismounted.c
lib/ext2fs/unix_io.c
misc/e2image.c