From: adilger Date: Tue, 20 Apr 2004 18:57:30 +0000 (+0000) Subject: Fix this bug, not sure why my CVS didn't show this as a diff. X-Git-Tag: v1_7_100~2349 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=50c465f481a2ad6e58026490a1f2e0c9ea7bfc12 Fix this bug, not sure why my CVS didn't show this as a diff. b=3222 --- diff --git a/lustre/tests/cmknod.c b/lustre/tests/cmknod.c index 9faf8e2..c8659e4 100644 --- a/lustre/tests/cmknod.c +++ b/lustre/tests/cmknod.c @@ -46,7 +46,7 @@ int main( int argc, char **argv) fprintf(stderr, "%s: created device other than requested: (%d,%d) instead of (%d,%d)\n", prog, major(st.st_rdev),minor(st.st_rdev),major(device),minor(device)); return 4; } - if (!S_ISCHR(st.st_mode)) { + if (!S_ISBLK(st.st_mode)) { fprintf(stderr, "%s: created device of different type. Requested block device, got mode %o\n", prog, st.st_mode); return 5; }