+2000-02-02 Theodore Ts'o <tytso@valinux.com>
+
+ * debugfs.c (dump_inode): Remove #ifdef for i_version
+ vs. i_generation since we know it will always be
+ i_generation now.
+
2000-01-18 Theodore Ts'o <tytso@valinux.com>
* debugfs.c (main): Use return instead of exit at the end of main
else if (LINUX_S_ISSOCK(inode.i_mode)) i_type = "socket";
else i_type = "bad type";
fprintf(out, "Inode: %ld Type: %s ", inode_num, i_type);
-#if defined(HAVE_EXT2_INODE_VERSION)
- fprintf(out, "Mode: %04o Flags: 0x%x Version/Generation: %d\n",
- inode.i_mode & 0777, inode.i_flags, inode.i_version);
-#else
- fprintf(out, "Mode: %04o Flags: 0x%x Version/Generation: %d\n",
+ fprintf(out, "Mode: %04o Flags: 0x%x Generation: %d\n",
inode.i_mode & 0777, inode.i_flags, inode.i_generation);
-#endif
fprintf(out, "User: %5d Group: %5d Size: ",
inode.i_uid, inode.i_gid);
if (LINUX_S_ISDIR(inode.i_mode))
+2000-02-02 Theodore Ts'o <tytso@valinux.com>
+
+ * e2fsck.h, flushb.c, scantest.c: Remove uneeded include of
+ linux/fs.h
+
2000-01-18 Theodore Ts'o <tytso@valinux.com>
* Makefile.in: Since LIBUUID can sometimes include "-lsocket"
#include <setjmp.h>
#endif
-#ifdef HAVE_LINUX_FS_H
-#include <linux/fs.h>
-#endif
-
#if EXT2_FLAT_INCLUDES
#include "ext2_fs.h"
#include "ext2fs.h"
#include <fcntl.h>
#include <sys/ioctl.h>
-#ifdef HAVE_LINUX_FS_H
-#include <linux/fs.h>
-#endif
-
#ifdef __STDC__
#define NOARGS void
#else
#include <sys/types.h>
#include <sys/time.h>
-#ifdef HAVE_LINUX_FS_H
-#include <linux/fs.h>
-#endif
#include <linux/ext2_fs.h>
#include "ext2fs/ext2fs.h"
+2000-02-02 Theodore Ts'o <tytso@valinux.com>
+
+ * getsize.c, ismounted.c: Remove unneeded include of linux/fs.h
+
+ * swapfs.c: Remove #ifdef HAVE_EXT2_INODE_VERSION since it's not
+ needed any more; we know it will always be i_generation.
+ Add support for swapping the high bits of the uid and gid.
+
1999-11-19 <tytso@valinux.com>
* mkdir.c (ext2fs_mkdir): Only update the parent's inode link
/*
- * bmap.c --- logical to phiscal block mapping
+ * bmap.c --- logical to physical block mapping
*
* Copyright (C) 1997 Theodore Ts'o.
*
#include <errno.h>
#endif
#include <fcntl.h>
-#ifdef HAVE_LINUX_FS_H
-#include <linux/fs.h>
-#endif
#ifdef HAVE_LINUX_FD_H
#include <sys/ioctl.h>
#include <linux/fd.h>
#include <errno.h>
#endif
#include <fcntl.h>
-#ifdef HAVE_LINUX_FS_H
-#include <linux/fs.h>
-#endif
#ifdef HAVE_LINUX_FD_H
#include <linux/fd.h>
#endif
for (i = 0; i < EXT2_N_BLOCKS; i++)
t->i_block[i] = f->i_block[i];
}
-#if defined(HAVE_EXT2_INODE_VERSION)
- t->i_version = ext2fs_swab32(f->i_version);
-#else
t->i_generation = ext2fs_swab32(f->i_generation);
-#endif
t->i_file_acl = ext2fs_swab32(f->i_file_acl);
t->i_dir_acl = ext2fs_swab32(f->i_dir_acl);
t->i_faddr = ext2fs_swab32(f->i_faddr);
t->osd2.linux2.l_i_frag = f->osd2.linux2.l_i_frag;
t->osd2.linux2.l_i_fsize = f->osd2.linux2.l_i_fsize;
t->osd2.linux2.i_pad1 = ext2fs_swab16(f->osd2.linux2.i_pad1);
- t->osd2.linux2.l_i_reserved2[0] =
- ext2fs_swab32(f->osd2.linux2.l_i_reserved2[0]);
- t->osd2.linux2.l_i_reserved2[1] =
- ext2fs_swab32(f->osd2.linux2.l_i_reserved2[1]);
+ t->osd2.linux2.l_i_uid_high =
+ ext2fs_swab16 (f->osd2.linux2.l_i_uid_high);
+ t->osd2.linux2.l_i_gid_high =
+ ext2fs_swab16 (f->osd2.linux2.l_i_gid_high);
+ t->osd2.linux2.l_i_reserved2 =
+ ext2fs_swab32(f->osd2.linux2.l_i_reserved2);
break;
case EXT2_OS_HURD:
t->osd1.hurd1.h_i_translator =