1. 10 Nov, 1999 4 commits
    • Theodore Ts'o's avatar
      README, RELEASE-NOTES, TODO, e2fsprogs.spec, version.h: · 24ded091
      Theodore Ts'o authored
        Update for 1.18 release.
      24ded091
    • Theodore Ts'o's avatar
      ChangeLog, problem.c, problemP.h: · a846d2f4
      Theodore Ts'o authored
        problem.c (fix_problem): Support a new flag, PR_PREEN_NO which means
        	the answer is assumed to be no in preen mode.  This is now used in the
        	PR_1_SET_IMMUTABLE code, so that in preen mode we ignore these inodes
        	and just print a warning message.
      a846d2f4
    • Theodore Ts'o's avatar
      ChangeLog, e2fsck.h, pass1.c, pass2.c, pass3.c, problem.c, problem.h, util.c: · 6fdc7a32
      Theodore Ts'o authored
        pass1.c (e2fsck_pass1): If the filesystem does not support imagic
        	inodes, if an inode has the imagic flag set, offer to clear the imagic
        	flag.  If a valid device/fifo/socket has the immutable flag set, call
        	the new helper function check_immutable() to offerto clear the
        	immutable flag.
        pass2.c (check_filetype): Use the new ext2_file_type() helper function
        	instead of calculating the file_type information manually.
        pass3.c (e2fsck_reconnect_file): When adding a link to lost+found,
        	calculate the filetype information so that ext2fs_link() can use the
        	information if applicable.  (get_lost_and_found): Create the
        	/lost+found directory with the correct filetype information if
        	applicable.
        util.c (ext2_file_type), e2fsck.h: New function which returns the
        	directory entry file type information given the inode's mode bits.
        problem.c, problem.h: Added new problem codes PR_1_SET_IMAGIC and
        	PR_1_SET_IMMUTABLE.
      ChangeLog, mke2fs.8.in:
        mke2fs.8.in: Update manual page so that the sparse_option filesystem
        	option is properly named.
      6fdc7a32
    • Theodore Ts'o's avatar
      ChangeLog, run_e2fsck, expect.1, expect.2, image.gz, name, script: · 0444e15b
      Theodore Ts'o authored
        f_imagic: New test case which tests handling of imagic inodes in an
        	non-imagic-enabled filessystem.
        f_imagic_fs: New test case which tests handling of imagic inodes in an
        	imagic-enabled filesystem.
        f_filetype: New test case which tests setting filetype information in
        	a filesystem.  Also tests handling of immutable special files
        	(device/fifo).
        run_e2fsck: Add support for PREP_CMD, which allows a test case to
        	specify some commands which will be run (via eval) after the image is
        	compressed and before running e2fsck.
      0444e15b
  2. 08 Nov, 1999 3 commits
    • Theodore Ts'o's avatar
      ChangeLog, Makefile.in, badblocks.c, freefs.c, tst_badblocks.c: · 9b9fe8ac
      Theodore Ts'o authored
        Makefile.in (tst_badblocks): Add freefs.o to the object list, since
        ext2fs_badblocks_list_free was moved to freefs.c.
        tst_badblocks.c: Use the newer badblocks API names.  Add duplicate
        	blocks to the test inputs to test dealing with adding blocks which are
        	already in the badblocks list.
        badblocks.c (ext2fs_badblocks_list_add): If appending to the end of
        	the list, use a shortcut O(1) operations instead of an O(n) operation.
        	(Idea suggested by David Beattie.)
        freefs.c (ext2fs_free): Use ext2fs_badblocks_list_free() instead of
        	badblocks_list_free(), to save a procedure call.
      9b9fe8ac
    • Theodore Ts'o's avatar
      ChangeLog, icheck.c, ncheck.c: · 643efb8a
      Theodore Ts'o authored
        icheck.c (do_icheck):
        ncheck.c (do_ncheck): If ext2fs_open_inode_scan() returns
        	EXT2_ET_BAD_BLOCK_IN_INODE_TABLE loop to skip over the bad blocks in
        	the inode table.
      643efb8a
    • Theodore Ts'o's avatar
      ChangeLog, e2fsck.c, pass4.c, problem.h, unix.c: · 7142db08
      Theodore Ts'o authored
        pass4.c (e2fsck_pass4): Clear inode_imagic_map after freeing it, to
        	prevent it from getting freed twice.
        unix.c (main): Close the filesystem before freeing the context, so
        	that in the event of a free()-related segmentation violation, the
        	filesystem is properly closed and written out.
        e2fsck.c (e2fsck_reset_context): When freeing ctx->inode_reg_map, we
        	weren't zero'ing ctx->inode_reg_map, which could cause a segfault
        	later on in the e2fsck run.
        problem.h (PR_2_SPLIT_DOT): Fix excess zero in problem code (now
        	matches the standard convention).
      7142db08
  3. 04 Nov, 1999 1 commit
    • Theodore Ts'o's avatar
      ChangeLog, fsck.c: · 6a35ffa0
      Theodore Ts'o authored
        fsck.c (main): Move setting of the interactive flag to before the call
        	to check_all(), so that people who try to use fsck -As can do so
        	interactively.
      6a35ffa0
  4. 26 Oct, 1999 19 commits
    • Theodore Ts'o's avatar
      ADD TAG: E2FSPROGS-1_17 · b3ee3744
      Theodore Ts'o authored
      b3ee3744
    • Theodore Ts'o's avatar
      Many files: · 28e1194e
      Theodore Ts'o authored
        Update for 1.17 release.
      28e1194e
    • Theodore Ts'o's avatar
      ChangeLog, fsck.c: · 3bc03669
      Theodore Ts'o authored
        fsck.c (PRS, device_already_active): Add debugging hook; if the
        	environment variable FSCK_FORCE_ALL_PARALLEL is set, then force all
        	fsck runs to happen in parallel.
      3bc03669
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.c: · 9094f284
      Theodore Ts'o authored
        mke2fs.c (set_fs_defaults): Changed parameter name to avoid gcc
        	warnings.
      Makefile.in:
        Update dependency information.
      9094f284
    • Theodore Ts'o's avatar
      ChangeLog, subst.c: · cdceb049
      Theodore Ts'o authored
        subst.c (substitute_line): Removed some unused variables.
      cdceb049
    • Theodore Ts'o's avatar
      ChangeLog, get_device_by_label.c: · 36b0130b
      Theodore Ts'o authored
        get_device_by_label.c (has_right_label): Fixed bug where code used a
        	strncmp to compare a binary UUID value which may contain a NULL.
        	Fixed GCC warnings; added const to char * typed variables.  Eliminated
        	non-portable use of u_char.
      36b0130b
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.c: · 4a600566
      Theodore Ts'o authored
        mke2fs.c (PRS): Fix gcc warnings; add const to some char * variables,
        	including in struct mke2fs_defaults.
      4a600566
    • Theodore Ts'o's avatar
      ChangeLog, fsck.c: · b5135717
      Theodore Ts'o authored
        fsck.c (wait_one): Fix gcc warnings; add #include for ctype.h, add
        	const to char * variables, and use NOARGS to declare functions that
        	take no arguments.  Also fix a memory leak in execute() where we
        	weren't freeing argv[] after forking the child process.
      b5135717
    • Theodore Ts'o's avatar
      ChangeLog, e2p.h, feature.c: · 36caf25f
      Theodore Ts'o authored
        feature.c: Fix GCC warnings; add const to the char * types in the
        	function prototypes for e2p_feature2string and e2p_edit_feature.
      ChangeLog, uuid.h, uuid_time.c:
        uuid_time.c (variant_string): Declare to be static to avoid gcc warnings.
        uuid.h: Add function prototypes for uuid_generate_random() and
        	uuid_generate_time().
      ChangeLog, chattr.c:
        chattr.c: Add hack to compile in a definition for S_ISLNK so we can
        	successfully compile even with warnings turned on.
      36caf25f
    • Theodore Ts'o's avatar
      ChangeLog, debugfs.c, debugfs.h: · f68aa414
      Theodore Ts'o authored
        debugfs.h: Add declaration for do_features()
        debugfs.c: Add #incldue of e2p.h to fix gcc warnings.
      ChangeLog, message.c:
        message.c (safe_print): Make safe_print take an char instead of an
        	unsigned char to fix gcc warnings.
      f68aa414
    • Theodore Ts'o's avatar
      ChangeLog, ext2fs.h: · 416c93d4
      Theodore Ts'o authored
        ext2fs.h: Add kludge to deal with the fact that egcs cpp doesn't seem
        	to handle ~0UL the same way as they used to.
      416c93d4
    • Theodore Ts'o's avatar
      util.c: · c81c6ce5
      Theodore Ts'o authored
        Fix stupid bugs in NT portability patch.
      ChangeLog, configure, configure.in:
        Add termios.h to the headers which are checked.
      c81c6ce5
    • Theodore Ts'o's avatar
      ChangeLog, configure, configure.in: · f8bd9807
      Theodore Ts'o authored
        configure.in: Move the code that checks for the presence of Linux
        	header files, to earlier in the config file, since it adds a directory
        	to the include path, and that needs to happen before any compile tests
        	are run.
      f8bd9807
    • Theodore Ts'o's avatar
      ChangeLog, gen_uuid_nt.c: · 6c979d5c
      Theodore Ts'o authored
        gen_uuid_nt.c (uuid_generate): W2K strikes again!  An incompatible
        	interface change means we need to detect whether the code is running
        	on an NT4 or NT5 system.
      config.h, ChangeLog:
        config.h: Add #define's for strcasecmp and strncasecmp
      6c979d5c
    • Theodore Ts'o's avatar
      nt_io.c: · 00ab0435
      Theodore Ts'o authored
        Add e-mail address to author's name.
      00ab0435
    • Theodore Ts'o's avatar
      ChangeLog, nt_io.c: · fe70fd33
      Theodore Ts'o authored
        nt_io.c (_OpenNtName): Open the device using
        	FILE_SYNCHRONOUS_IO_NONALERT instead of FILE_SYNCHRONOUS_IO_ALERT
        	(nt_open): At the end of the device open routine, unlock the drive but
        	do not dismount it.
      fe70fd33
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.c: · e6597048
      Theodore Ts'o authored
        mke2fs.c (PRS): Use __u64 instead of long long for portability
        	reasons.
        	Moved #include of sys/stat.h inside #ifdef HAVE_LINUX_MAJOR_H for
        	portability reasons.
      ChangeLog, util.c:
        util.c: For NT portability, don't redefine getchar(), since stdio
        	defines that.  Instead we introduce a new abstract macro read_a_char()
        	which is #defined to the right function as necessary.
      e6597048
    • Theodore Ts'o's avatar
      .del-ext2_fs.h~7a460879, ChangeLog: · 601002bd
      Theodore Ts'o authored
        ext2_fs.h (i_reserved2): Use __GNU__ instead of __hurd__ to detect the
        	Hurd OS.  To protect against future irrationality on the part of the
        	FSF concerning whether Linux is GNU or not, on a system which defines
        	both __linux__ and __GNU___, __linux__ takes precedence.
      ChangeLog, initialize.c:
        initialize.c (CREATOR_OS): Use __GNU__ instead of __gnu__ to detect
        	the Hurd OS.
      ChangeLog, debugfs.c:
        debugfs.c (do_dirty_filesys): Make the "dirty" command clear the valid
        	bit on the superblock.  (And with a -clean option to set the valid
        	bit.)  Originally it was used just to set the "needs to be written"
        	bit in the in-core version of the fs structure.
      601002bd
    • Theodore Ts'o's avatar
      ChangeLog, fsck.c: · ad6783df
      Theodore Ts'o authored
        fsck.c (execute): Fix really stupid bug in the linked list management
        	which caused fsck in parallel mode to go into an infinite loop.
      ChangeLog, mke2fs.c:
        mke2fs.c (show_stats): Capitalized Hurd to make the GNU types happy.
      ChangeLog, configure.in:
        configure.in: Capitalized Hurd to make the GNU folks happy.
      ad6783df
  5. 25 Oct, 1999 1 commit
    • Theodore Ts'o's avatar
      ChangeLog, pass2.c, problem.c, problem.h: · c40db6d5
      Theodore Ts'o authored
        problem.c, problem.h (PR_2_NULL_NAME): Add new problem code.
        pass2.c (check_dir_block): Require that the length of the directory
        	entry be at least 12 bytes.  Check to see if the filename is
        	zero-length, and flag that as an error.
      c40db6d5
  6. 23 Oct, 1999 11 commits
    • Theodore Ts'o's avatar
      ADD TAG: E2FSPROGS-1_16 · bac43be9
      Theodore Ts'o authored
      bac43be9
    • Theodore Ts'o's avatar
      README, RELEASE-NOTES, TODO, e2fsprogs.lsm, e2fsprogs.spec, version.h: · 8a31ffef
      Theodore Ts'o authored
        Update for 1.16 release.
      8a31ffef
    • Theodore Ts'o's avatar
      Makefile.in: · 0859c04f
      Theodore Ts'o authored
        Update makefile dependencies for 1.16 release.
      0859c04f
    • Theodore Ts'o's avatar
      ChangeLog: · 614fdfd5
      Theodore Ts'o authored
        Update for 1.16 release.
      libext2fs.texinfo:
        Update version number for 1.16 release.
      614fdfd5
    • Theodore Ts'o's avatar
      debugfs.c: · 06968e7e
      Theodore Ts'o authored
        Update to pass new required parameter to e2p_edit_features
      mke2fs.8.in:
        Update man page to add explanatory note about how the default block
        size is determined.
      06968e7e
    • Theodore Ts'o's avatar
      ChangeLog, com_err.3: · 1d0fc069
      Theodore Ts'o authored
        com_err.3: Fix to have correct #include path for com_err.h
      1d0fc069
    • Theodore Ts'o's avatar
      mke2fs.c, tune2fs.c: · 18160d26
      Theodore Ts'o authored
        Fixed usage messages.
      18160d26
    • Theodore Ts'o's avatar
      Many files: · 06cefee5
      Theodore Ts'o authored
        Update copyright statements.
      06cefee5
    • Theodore Ts'o's avatar
      ChangeLog, Makefile.in, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c: · 896938d5
      Theodore Ts'o authored
        tune2fs.c (main): Add a new option -O which allows the user to set and
        	clear certain "safe" filsystem feature flags.  Currently, the only
        	ones which are supported for modification are sparse_superblock and
        	filetype.
        mke2fs.c (PRS): Add new option -O which allows the user to request
        	filesystems with specific filesystem options.  By default on 2.2 and
        	later systems, create filesystems that have both file type information
        	and sparse superblocks.
      896938d5
    • Theodore Ts'o's avatar
      ChangeLog, e2p.h, feature.c: · 944ab713
      Theodore Ts'o authored
        feature.c (e2p_edit_feature), e2p.h: Add a new argument which allows
        	the calling application to limit what features the user is allowed to
        	set or clear using this function.  Also add support for comma
        	separated lists.
      944ab713
    • Theodore Ts'o's avatar
      ChangeLog, link.c, mkdir.c, newdir.c: · e6198e5a
      Theodore Ts'o authored
        mkdir.c (ext2fs_mkdir): Pass EXT2_FT_DIR flag to ext2fs_link().
        link.c (ext2fs_link): This call now uses the low three bits of the
        	flags parameter to pass the directory filetype information; it will
        	set the directory entry FILETYPE information if the filesystem
        	supports it.
        newdir.c (ext2fs_new_dir_block): If the FILETYPE superblock option is
        	set, then create the '.' and '..' entries with the filetype set to
        	EXT2_FT_DIR.
      e6198e5a
  7. 22 Oct, 1999 1 commit
    • Theodore Ts'o's avatar
      ChangeLog, pass2.c, problem.c, problem.h: · 7847c1d4
      Theodore Ts'o authored
        pass2.c (check_filetype): If the filetype filesystem feature is not
        	set, and a directory entry has a dirent feature, offer to clear it
        	(since 2.0 kernels will do complain will interpret it as a very large
        	name length field).
      7847c1d4