Whamcloud - gitweb
b=3643
[fs/lustre-release.git] / lustre / tests / mcreate.c
index 0d8cd36..9d48b11 100644 (file)
@@ -10,14 +10,14 @@ int main(int argc, char ** argv)
 {
         int rc;
 
-        if (argc < 2) { 
+        if (argc < 2) {
                 printf("Usage %s filename\n", argv[0]);
                 return 1;
         }
 
-        rc = mknod(argv[1], S_IFREG| 0444, 0);
-        if (rc) { 
-                printf("error: %s\n", strerror(errno));
+        rc = mknod(argv[1], S_IFREG | 0644, 0);
+        if (rc) {
+                printf("mknod(%s) error: %s\n", argv[1], strerror(errno));
         }
         return rc;
-} 
+}