Many files:
  Checkin of e2fsprogs 0.5b

diff --git a/lib/ext2fs/newdir.c b/lib/ext2fs/newdir.c
index 948bad9..d1018c1 100644
--- a/lib/ext2fs/newdir.c
+++ b/lib/ext2fs/newdir.c
@@ -9,7 +9,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <linux/fs.h>
+
 #include <linux/ext2_fs.h>
 
 #include "ext2fs.h"
@@ -24,6 +24,8 @@
 	struct ext2_dir_entry *dir = NULL;
 	int	rec_len;
 
+	EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
+
 	buf = malloc(fs->blocksize);
 	if (!buf)
 		return ENOMEM;