Whamcloud - gitweb
Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
authorTheodore Ts'o <tytso@mit.edu>
Mon, 24 Dec 2001 00:33:51 +0000 (19:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 24 Dec 2001 00:33:51 +0000 (19:33 -0500)
system header file version of hbd.h when using diet glibc
(since it forcibly adds /usr/include to the beginning of include
search path.)

15 files changed:
debugfs/ChangeLog
debugfs/Makefile.in
debugfs/jfs_user.h
e2fsck/ChangeLog
e2fsck/Makefile.in
e2fsck/jfs_user.h
lib/ext2fs/ChangeLog
lib/ext2fs/Makefile.in
lib/ext2fs/jfs_compat.h [moved from include/linux/jfs_compat.h with 98% similarity]
lib/ext2fs/jfs_user.h
lib/ext2fs/kernel-jbd.h [moved from include/linux/jbd.h with 100% similarity]
lib/ext2fs/kernel-list.h [moved from include/linux/linked_list.h with 100% similarity]
misc/ChangeLog
misc/Makefile.in
misc/jfs_user.h

index d4228ce..8cdee82 100644 (file)
@@ -1,3 +1,11 @@
+2001-12-23  Theodore Tso  <tytso@valinux.com>
+
+       * Makefile.in, jfs_user.h: Move linux/jbd.h to
+               ext2fs/kernel-jbd.h, to avoid using the system header
+               file version of hbd.h when using diet glibc (since it
+               forcibly adds /usr/include to the beginning of the
+               include search path.)
+
 2001-12-22  Theodore Tso  <tytso@valinux.com>
 
        * debugfs.c (kill_file_by_inode, release_blocks_proc): Update the
index f06de64..e43d6c0 100644 (file)
@@ -74,8 +74,6 @@ distclean: clean
 # Makefile dependencies follow.  This must be the last section in
 # the Makefile.in file
 #
-debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
- $(top_builddir)/lib/ss/ss_err.h
 debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
  $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
  $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
@@ -117,10 +115,3 @@ setsuper.o: $(srcdir)/setsuper.c $(srcdir)/debugfs.h \
  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
  $(top_srcdir)/lib/ext2fs/bitops.h
-logdump.o: $(srcdir)/logdump.c $(srcdir)/debugfs.h \
- $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
- $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
- $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
- $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/jfs_user.h \
- $(top_srcdir)/include/linux/jbd.h $(top_srcdir)/include/linux/jfs_compat.h \
- $(top_srcdir)/include/linux/linked_list.h
index 1583168..3070cd5 100644 (file)
@@ -3,7 +3,6 @@
 
 typedef unsigned short kdev_t;
 
-#include <linux/jbd.h>
-
+#include <ext2fs/kernel-jbd.h>
 
 #endif /* _JFS_USER_H */
index 9ae5f1e..9c0bc45 100644 (file)
@@ -1,3 +1,11 @@
+2001-12-23  Theodore Tso  <tytso@valinux.com>
+
+       * Makefile.in, jfs_user.h: Move linux/jbd.h to
+               ext2fs/kernel-jbd.h, to avoid using the system header
+               file version of hbd.h when using diet glibc (since it
+               forcibly adds /usr/include to the beginning of the
+               include search path.)
+
 2001-12-21  Theodore Tso  <tytso@valinux.com>
 
        * problem.c (fix_problem): Use ctx->filesystem_name if the
index a4e894f..459be30 100644 (file)
@@ -214,28 +214,6 @@ pass5.o: $(srcdir)/pass5.c $(srcdir)/e2fsck.h \
  $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
  $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/problem.h
-journal.o: $(srcdir)/journal.c $(srcdir)/jfs_user.h $(srcdir)/e2fsck.h \
- $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
- $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
- $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
- $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/include/linux/jbd.h \
- $(top_srcdir)/include/linux/jfs_compat.h \
- $(top_srcdir)/include/linux/linked_list.h $(srcdir)/problem.h \
- $(top_srcdir)/lib/uuid/uuid.h
-recovery.o: $(srcdir)/recovery.c $(srcdir)/jfs_user.h $(srcdir)/e2fsck.h \
- $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
- $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
- $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
- $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/include/linux/jbd.h \
- $(top_srcdir)/include/linux/jfs_compat.h \
- $(top_srcdir)/include/linux/linked_list.h
-revoke.o: $(srcdir)/revoke.c $(srcdir)/jfs_user.h $(srcdir)/e2fsck.h \
- $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
- $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
- $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
- $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/include/linux/jbd.h \
- $(top_srcdir)/include/linux/jfs_compat.h \
- $(top_srcdir)/include/linux/linked_list.h
 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
  $(srcdir)/e2fsck.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
index f02923b..d8da030 100644 (file)
@@ -97,7 +97,7 @@ _INLINE_ void do_cache_destroy(kmem_cache_t *cache)
 /*
  * Now pull in the real linux/jfs.h definitions.
  */
-#include <linux/jbd.h>
+#include <ext2fs/kernel-jbd.h>
 
 /*
  * Kernel compatibility functions are defined in journal.c
index a8a4274..28a3a15 100644 (file)
@@ -1,3 +1,14 @@
+2001-12-23  Theodore Tso  <tytso@valinux.com>
+
+       * Makefile.in, jfs_user.h: Move linux/jbd.h to
+               ext2fs/kernel-jbd.h, to avoid using the system header
+               file version of hbd.h when using diet glibc (since it
+               forcibly adds /usr/include to the beginning of the
+               include search path.)
+
+       * kernel-jbd.h, kernel-list.h, jfs_compat.h: Move files from
+               include/linux directory.
+
 2001-12-16  Theodore Tso  <tytso@valinux.com>
 
        * bitops.h (ext2fs_mark_generic_bitmap, ext2fs_unmark_generic_bitmap),
index 4e8878e..dbdc756 100644 (file)
@@ -346,9 +346,10 @@ get_pathname.o: $(srcdir)/get_pathname.c $(srcdir)/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fs.h \
  $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
  $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
-getsize.o: $(srcdir)/getsize.c $(srcdir)/ext2_fs.h \
- $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fs.h \
- $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
+getsize.o: $(srcdir)/getsize.c /usr/src/linux/include/linux/fd.h \
+ /usr/src/linux/include/linux/ioctl.h /usr/src/linux/include/asm/ioctl.h \
+ $(srcdir)/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
+ $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
  $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
 icount.o: $(srcdir)/icount.c $(srcdir)/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fs.h \
@@ -370,9 +371,10 @@ inode.o: $(srcdir)/inode.c $(srcdir)/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fsP.h \
  $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
  $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h $(srcdir)/e2image.h
-ismounted.o: $(srcdir)/ismounted.c $(srcdir)/ext2_fs.h \
- $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fs.h \
- $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
+ismounted.o: $(srcdir)/ismounted.c /usr/src/linux/include/linux/fd.h \
+ /usr/src/linux/include/linux/ioctl.h /usr/src/linux/include/asm/ioctl.h \
+ $(srcdir)/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
+ $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
  $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
 link.o: $(srcdir)/link.c $(srcdir)/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fs.h \
@@ -388,13 +390,6 @@ mkdir.o: $(srcdir)/mkdir.c $(srcdir)/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fs.h \
  $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
  $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h
-mkjournal.o: $(srcdir)/mkjournal.c $(srcdir)/ext2_fs.h \
- $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/e2p/e2p.h \
- $(srcdir)/ext2fs.h $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
- $(top_builddir)/lib/ext2fs/ext2_err.h $(srcdir)/bitops.h \
- $(srcdir)/jfs_user.h $(top_srcdir)/include/linux/jbd.h \
- $(top_srcdir)/include/linux/jfs_compat.h \
- $(top_srcdir)/include/linux/linked_list.h
 namei.o: $(srcdir)/namei.c $(srcdir)/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(srcdir)/ext2fs.h \
  $(top_srcdir)/lib/et/com_err.h $(srcdir)/ext2_io.h \
similarity index 98%
rename from include/linux/jfs_compat.h
rename to lib/ext2fs/jfs_compat.h
index 8974243..c8dc5af 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef _JFS_COMPAT_H
 #define _JFS_COMPAT_H
 
-#include "linked_list.h"
+#include "kernel-list.h"
 #include <errno.h>
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
index 1583168..3a52123 100644 (file)
@@ -3,7 +3,6 @@
 
 typedef unsigned short kdev_t;
 
-#include <linux/jbd.h>
-
+#include "kernel-jbd.h"
 
 #endif /* _JFS_USER_H */
similarity index 100%
rename from include/linux/jbd.h
rename to lib/ext2fs/kernel-jbd.h
index 3089f82..f693d61 100644 (file)
@@ -1,3 +1,11 @@
+2001-12-23  Theodore Tso  <tytso@valinux.com>
+
+       * Makefile.in, jfs_user.h: Move linux/jbd.h to
+               ext2fs/kernel-jbd.h, to avoid using the system header
+               file version of hbd.h when using diet glibc (since it
+               forcibly adds /usr/include to the beginning of the
+               include search path.)
+
 2001-12-22  Theodore Tso  <tytso@valinux.com>
 
        * get_device_by_label.c (init_lvm): Add support to read out
index a440bc0..5e14330 100644 (file)
@@ -193,16 +193,6 @@ distclean: clean
 # Makefile dependencies follow.  This must be the last section in
 # the Makefile.in file
 #
-tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
- $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
- $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
- $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
- $(top_srcdir)/lib/uuid/uuid.h $(top_srcdir)/lib/e2p/e2p.h \
- $(srcdir)/jfs_user.h $(top_srcdir)/include/linux/jbd.h \
- $(top_srcdir)/include/linux/jfs_compat.h \
- $(top_srcdir)/include/linux/linked_list.h $(srcdir)/util.h \
- $(srcdir)/get_device_by_label.h $(top_srcdir)/version.h \
- $(srcdir)/nls-enable.h
 mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
  $(srcdir)/nls-enable.h
@@ -218,14 +208,6 @@ chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
 lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
  $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
-dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
- $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
- $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
- $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
- $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
- $(top_srcdir)/include/linux/jbd.h $(top_srcdir)/include/linux/jfs_compat.h \
- $(top_srcdir)/include/linux/linked_list.h $(top_srcdir)/version.h \
- $(srcdir)/nls-enable.h
 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
@@ -233,12 +215,12 @@ badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
  $(srcdir)/nls-enable.h
 fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
  $(srcdir)/fsck.h $(srcdir)/get_device_by_label.h
-util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
- $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
- $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
- $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
- $(top_srcdir)/lib/ext2fs/bitops.h $(srcdir)/nls-enable.h \
- $(srcdir)/get_device_by_label.h $(srcdir)/util.h
+util.o: $(srcdir)/util.c /usr/src/linux/include/linux/major.h \
+ $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/e2p/e2p.h \
+ $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
+ $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
+ $(top_builddir)/lib/ext2fs/ext2_err.h $(top_srcdir)/lib/ext2fs/bitops.h \
+ $(srcdir)/nls-enable.h $(srcdir)/get_device_by_label.h $(srcdir)/util.h
 uuidgen.o: $(srcdir)/uuidgen.c $(top_srcdir)/lib/uuid/uuid.h \
  $(srcdir)/nls-enable.h
-fstype.o: $(srcdir)/fstype.c
+fstype.o: $(srcdir)/fstype.c $(srcdir)/fsck.h
index 1583168..3070cd5 100644 (file)
@@ -3,7 +3,6 @@
 
 typedef unsigned short kdev_t;
 
-#include <linux/jbd.h>
-
+#include <ext2fs/kernel-jbd.h>
 
 #endif /* _JFS_USER_H */