From: adilger Date: Tue, 27 May 2003 21:40:58 +0000 (+0000) Subject: Remove lib/simple.c functions from ldlm/ldlm_lib.c into obdclass/simple.c X-Git-Tag: v1_7_110~2^11~123 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c5d9705168dfe3b3a8fcd2a53d880fdf339e42c0;p=fs%2Flustre-release.git Remove lib/simple.c functions from ldlm/ldlm_lib.c into obdclass/simple.c Remove duplicate declarations of client_obd_{setup,cleanup}() in ldlm/ldlm_lib.c Remove duplicate declarations of client_sanobd_setup()/path2dev. --- diff --git a/lustre/tests/createtest.c b/lustre/tests/createtest.c index 5404f13..6223034 100644 --- a/lustre/tests/createtest.c +++ b/lustre/tests/createtest.c @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) argv[0], name, strerror(errno)); exit(11); } - if ((st.st_mode & S_IFMT) != S_IFREG) { + if (!S_ISREG(st.st_mode & S_IFMT)) { fprintf(stderr, "%s: ERROR mode %s: %o != %o", argv[0], name, st.st_mode & S_IFMT, S_IFREG); exit(12); @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) argv[0], name, strerror(errno)); exit(11); } - if ((st.st_mode & S_IFMT) != S_IFDIR) { + if (!S_ISDIR(st.st_mode)) { fprintf(stderr, "%s: ERROR mode %s: %o != %o", argv[0], name, st.st_mode & S_IFMT, S_IFDIR); exit(12);