Whamcloud - gitweb
Many files:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 26 Apr 1997 14:25:20 +0000 (14:25 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Apr 1997 14:25:20 +0000 (14:25 +0000)
  Checked in e2fsprogs 1.01.

23 files changed:
INSTALL.dllbin [new file with mode: 0644]
INSTALL.elfbin [new file with mode: 0644]
README
debugfs/debugfs.8
e2fsck/ChangeLog
e2fsck/e2fsck.8
e2fsck/e2fsck.c
lib/ChangeLog
lib/Makefile.dll-lib
lib/Makefile.elf-lib
lib/e2p/ChangeLog
lib/e2p/Makefile.in
lib/e2p/ls.c
lib/et/Makefile.in
lib/ext2fs/Makefile.in
lib/ext2fs/ismounted.c
lib/ss/Makefile.in
lib/ss/test_ss.c
misc/ChangeLog
misc/badblocks.8
misc/chattr.1
misc/fsck.c
version.h

diff --git a/INSTALL.dllbin b/INSTALL.dllbin
new file mode 100644 (file)
index 0000000..a446e37
--- /dev/null
@@ -0,0 +1,51 @@
+NOTE: This is the DLL version of the binary distribution.  If you have
+an ELF system, please either compile e2fsprogs from sources yourself,
+or get the ELF version of the binary distribution.  The ELF version
+will have a filename of e2fsprogs-1.01-elfbin.tar.gz
+
+
+       To install the binary distribution of the second extended file
+system management programs, just follow the steps:
+
+1) Install this tar file using the following command:
+
+       gunzip < e2fsprogs-1.01-dllbin.tar.gz | (cd /; tar xvf - )
+
+2) Run ldconfig to update the shared library pointers.
+
+        As root, type /sbin/ldconfig. This will update the links to
+the shared libraries included in the distribution. You can then remove
+the old versions of the libraries from /lib.  
+
+3) Remove any pre-formatted man pages.  
+
+       Some distributions will have pre-formatted manual pages which
+will always be displayed in preference to newer man pages in /usr/man.
+If this is the case, you may need to manually remove them in order to
+see the correct manual pages.  The shell script in
+install-utils/remove_preformat_manpages may be helpful in doing so.
+
+4) Make sure your /etc/fstab file is correct.
+
+       Some distributions install an /etc/fstab which is missing the
+fifth and sixth field of filesystem entry, which are the dump
+frequency, and the fsck pass number, respectively.  The problem with
+this is that the getmntent() library routine interprets those missing
+fields as "0", and a pass number of 0 is documented as meaning that
+fsck should not check that particular filesystem.  If your entries in
+your /etc/fstab file look liks this:
+
+/dev/hda4       /        ext2        defaults
+
+you should add "1 1" at the end of each line, so that they look like this:
+
+/dev/hda4       /        ext2        defaults  1       1
+
+       There is a script in install-utils/convfstab (donated by
+Michael Weller) that may help you correct your /etc/fstab file.
+
+5) Cleanup files from the installation.
+
+       When you're done with the installation, you will probably want
+to remove /INSTALL (this file), /README, and /install-utils from your
+root directory
diff --git a/INSTALL.elfbin b/INSTALL.elfbin
new file mode 100644 (file)
index 0000000..1a05ec9
--- /dev/null
@@ -0,0 +1,51 @@
+NOTE: This is the ELF version of the binary distribution.  If you have
+a DLL system, please either compile e2fsprogs from sources yourself,
+or get the DLL version of the binary distribution.  The DLL version
+will have a filename of e2fsprogs-1.01-dllbin.tar.gz
+
+
+       To install the binary distribution of the second extended file
+system management programs, just follow the steps:
+
+1) Install this tar file using the following command:
+
+       gunzip < e2fsprogs-1.01-elfbin.tar.gz | (cd /; tar xvf - )
+
+2) Run ldconfig to update the shared library pointers.
+
+        As root, type /sbin/ldconfig. This will update the links to
+the shared libraries included in the distribution. You can then remove
+the old versions of the libraries from /lib.  
+
+3) Remove any pre-formatted man pages.  
+
+       Some distributions will have pre-formatted manual pages which
+will always be displayed in preference to newer man pages in /usr/man.
+If this is the case, you may need to manually remove them in order to
+see the correct manual pages.  The shell script in
+install-utils/remove_preformat_manpages may be helpful in doing so.
+
+4) Make sure your /etc/fstab file is correct.
+
+       Some distributions install an /etc/fstab which is missing the
+fifth and sixth field of filesystem entry, which are the dump
+frequency, and the fsck pass number, respectively.  The problem with
+this is that the getmntent() library routine interprets those missing
+fields as "0", and a pass number of 0 is documented as meaning that
+fsck should not check that particular filesystem.  If your entries in
+your /etc/fstab file look liks this:
+
+/dev/hda4       /        ext2        defaults
+
+you should add "1 1" at the end of each line, so that they look like this:
+
+/dev/hda4       /        ext2        defaults  1       1
+
+       There is a script in install-utils/convfstab (donated by
+Michael Weller) that may help you correct your /etc/fstab file.
+
+5) Cleanup files from the installation.
+
+       When you're done with the installation, you will probably want
+to remove /INSTALL (this file), /README, and /install-utils from your
+root directory
diff --git a/README b/README
index 7e39091..428a874 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-       This is the new version (0.5c) of the second extended file system
+       This is the new version (1.01) of the second extended file system
 management programs.  
 
        See the file INSTALL for installation instructions.  This is
index 9ff19d6..7107d09 100644 (file)
@@ -2,7 +2,7 @@
 .\" Copyright 1993, 1994, 1995 by Theodore Ts'o.  All Rights Reserved.
 .\" This file may be copied under the terms of the GNU Public License.
 .\" 
-.TH DEBUGFS 8 "October 1995" "Version 0.5c"
+.TH DEBUGFS 8 "October 1995" "Version 1.01"
 .SH NAME
 debugfs \- ext2 file system debugger
 .SH SYNOPSIS
index 847d9cd..c1d04c9 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 30 20:31:17 1995    <tytso@rsts-11.mit.edu>
+
+       * e2fsck.c (check_mount): For Linux systems, the check to see if
+               the root is mounted read-only has to be done for all
+               filesystems, not just for the root filesystem, due to the
+               way that some /etc/rc scripts are set up.
+
 Thu Oct 26 12:05:30 1995    <tytso@rsts-11.mit.edu>
 
        * Makefile.in (install): Strip programs when they are installed.
index bc12fc1..0febc3e 100644 (file)
@@ -2,7 +2,7 @@
 .\" Copyright 1993, 1994, 1995 by Theodore Ts'o.  All Rights Reserved.
 .\" This file may be copied under the terms of the GNU Public License.
 .\" 
-.TH E2FSCK 8 "October 1995" "Version 0.5c"
+.TH E2FSCK 8 "October 1995" "Version 1.01"
 .SH NAME
 e2fsck \- check a Linux second extended file system
 .SH SYNOPSIS
index e35e1ba..bc9510c 100644 (file)
@@ -144,7 +144,7 @@ static void show_stats(ext2_filsys fs)
 static void check_mount(NOARGS)
 {
        errcode_t       retval;
-       int             mount_flags, cont;
+       int             mount_flags, cont, fd;
 
        retval = ext2fs_check_if_mounted(filesystem_name, &mount_flags);
        if (retval) {
@@ -155,14 +155,20 @@ static void check_mount(NOARGS)
        }
        if (!(mount_flags & EXT2_MF_MOUNTED))
                return;
+
+#if (defined(linux) && defined(HAVE_MNTENT_H))
        /*
         * If the root is mounted read-only, then /etc/mtab is
         * probably not correct; so we won't issue a warning based on
         * it.
         */
-       if ((mount_flags & EXT2_MF_ISROOT) &&
-           (mount_flags & EXT2_MF_READONLY))
-               return;
+       fd = open(MOUNTED, O_RDWR);
+       if (fd < 0) {
+               if (errno == EROFS)
+                       return;
+       } else
+               close(fd);
+#endif
        
        if (!rwflag) {
                printf("Warning!  %s is mounted.\n", device_name);
index 14a8f19..84b8413 100644 (file)
@@ -1,3 +1,9 @@
+Mon Oct 30 21:11:47 1995    <tytso@rsts-11.mit.edu>
+
+       * Makefile.elf-lib: Changes to pass -soname to the linker, so that
+               ld.so knows which version of the library to load when
+               there's more than one major version of the shared library.
+
 Mon Sep  4 21:42:46 1995  Remy Card  <card@bbj>
 
        * Makefile.bsd-lib: New file containing support for BSD shared
index 94864bf..1a1f969 100644 (file)
@@ -62,6 +62,9 @@ $(DLL_IMAGE).so.$(DLL_VERSION): $(OBJS)
                -a $(DLL_ADDRESS) -j $(DLL_JUMPSIZE) -g $(DLL_GOTSIZE) -- \
                $(OBJS) -lc $(DLL_LIBS) $(DLL_LIBGCC) -lc)
        $(MV) jump/$(DLL_IMAGE).so.$(DLL_VERSION) .
+       $(LN) -f $(DLL_IMAGE).so.$(DLL_VERSION) \
+               `echo ../$(DLL_IMAGE).so.$(DLL_VERSION) | \
+               sed -e 's/\.[0-9]*\$$//'`
 
 $(DLL_STUB).sa:
        (cd jump; export JUMP_DIR=`pwd`; \
@@ -87,5 +90,8 @@ install:: $(DLL_STUB).sa
        $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/$(DLL_STUB).sa
 
 clean::
-       $(RM) -f ../$(DLL_STUB).sa $(DLL_STUB).sa $(DLL_IMAGE).so.$(DLL_VERSION)
+       $(RM) -f ../$(DLL_STUB).sa $(DLL_STUB).sa \
+               $(DLL_IMAGE).so.$(DLL_VERSION) ../$(DLL_IMAGE).so.*
        $(RM) -rf jump
+
+
index 10051dd..bd2693c 100644 (file)
@@ -5,6 +5,7 @@
 # In order to use this stub, the following makefile variables must be defined.
 # 
 # ELF_VERSION = 1.0
+# ELF_SONAME = 1
 # ELF_IMAGE = libce
 # ELF_MYDIR = et
 # ELF_INSTALL_DIR = $(SHLIBDIR)
@@ -18,15 +19,17 @@ elfshared:
        mkdir elfshared
 
 ELF_LIB = $(ELF_IMAGE).so.$(ELF_VERSION)
+ELF_SONAME = $(ELF_IMAGE).so.$(ELF_SO_VERSION)
 
 image:         $(ELF_LIB)
 
 $(ELF_LIB): $(OBJS)
-       (cd elfshared; $(CC) --shared -o $(ELF_LIB) $(OBJS))
+       (cd elfshared; $(CC) --shared -o $(ELF_LIB) -Wl,-soname,$(ELF_SONAME) $(OBJS))
        $(MV) elfshared/$(ELF_LIB) .
-       $(RM) -f ../$(ELF_LIB) ../$(ELF_IMAGE).so
+       $(RM) -f ../$(ELF_LIB) ../$(ELF_IMAGE).so ../$(ELF_SONAME)
        $(LN) $(ELF_LIB) ../$(ELF_LIB)
        $(LN) ../$(ELF_LIB) ../$(ELF_IMAGE).so
+       $(LN) ../$(ELF_LIB) ../$(ELF_SONAME)
 
 installdirs::
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ELF_INSTALL_DIR)
index 228b472..631d8f6 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 30 17:44:07 1995    <tytso@rsts-11.mit.edu>
+
+       * ls.c (list_super): Use the correct field (s_def_resgid) when
+               printing the reserved group gid.
+
 Fri Oct 27 18:07:48 1995    <tytso@rsts-11.mit.edu>
 
        * iod.c (iterate_on_dir): Don't assume that d->reclen is the size
index 2e8da28..1e68fe6 100644 (file)
@@ -39,6 +39,7 @@ DLL_MYDIR = e2p
 DLL_INSTALL_DIR = $(libdir)
 
 ELF_VERSION = 2.1
+ELF_SO_VERSION = 2
 ELF_IMAGE = libe2p
 ELF_MYDIR = e2p
 ELF_INSTALL_DIR = $(libdir)
index 6870098..08ccc8f 100644 (file)
@@ -80,6 +80,6 @@ void list_super (struct ext2_super_block * s)
        printf ("Reserved blocks uid:      ");
        print_user (s->s_def_resuid);
        printf ("Reserved blocks gid:      ");
-       print_group (s->s_def_resuid);
+       print_group (s->s_def_resgid);
 #endif
 }
index 39141a4..44b091a 100644 (file)
@@ -31,6 +31,7 @@ DLL_MYDIR = et
 DLL_INSTALL_DIR = $(libdir)
 
 ELF_VERSION = 2.0
+ELF_SO_VERSION = 2
 ELF_IMAGE = libcom_err
 ELF_MYDIR = et
 ELF_INSTALL_DIR = $(libdir)
index 879ea81..fd8301c 100644 (file)
@@ -84,6 +84,7 @@ DLL_MYDIR = ext2fs
 DLL_INSTALL_DIR = $(libdir)
 
 ELF_VERSION = 2.0
+ELF_SO_VERSION = 2
 ELF_IMAGE = libext2fs
 ELF_MYDIR = ext2fs
 ELF_INSTALL_DIR = $(libdir)
index 58c88fb..781bfdf 100644 (file)
@@ -37,7 +37,7 @@
 #ifdef HAVE_MNTENT_H
 /*
  * XXX we only check to see if the mount is readonly when it's the
- * root filesystem EXT2_FS_READONLY.
+ * root filesystem.
  */
 static errcode_t check_mntent(const char *file, int *mount_flags)
 {
index aaab812..2cedb5b 100644 (file)
@@ -24,6 +24,7 @@ DLL_MYDIR = ss
 DLL_INSTALL_DIR = $(libdir)
 
 ELF_VERSION = 2.0
+ELF_SO_VERSION = 2
 ELF_IMAGE = libss
 ELF_MYDIR = ss
 ELF_INSTALL_DIR = $(libdir)
index 7b37ec4..3878400 100644 (file)
@@ -9,8 +9,8 @@
  * $Locker$
  *
  * $Log$
- * Revision 1.3  1997/04/26 13:58:24  tytso
- * Checked in e2fsprogs 0.5c
+ * Revision 1.4  1997/04/26 14:25:12  tytso
+ * Checked in e2fsprogs 1.01.
  *
  * Revision 1.1  1993/06/03  12:31:25  tytso
  * Initial revision
index e815ed5..0b13e1f 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 30 20:21:18 1995    <tytso@rsts-11.mit.edu>
+
+       * fsck.c (fsck_device): Check fstype instead of type; this was a
+               stupid typo which caused coredumps in some cases.
+
 Thu Oct 26 12:05:18 1995    <tytso@rsts-11.mit.edu>
 
        * Makefile.in (install): Strip programs when they are installed.
index 57e1db5..8937961 100644 (file)
@@ -1,5 +1,5 @@
 .\" -*- nroff -*-
-.TH BADBLOCKS 8 "August 1995" "Version 0.5c"
+.TH BADBLOCKS 8 "October 1995" "Version 1.01"
 .SH NAME
 badblocks \- search a device for bad blocks
 .SH SYNOPSIS
index 09a9bfb..89783c7 100644 (file)
@@ -1,5 +1,5 @@
 .\" -*- nroff -*-
-.TH CHATTR 1 "October 1995" "Version 0.5c"
+.TH CHATTR 1 "October 1995" "Version 1.01"
 .SH NAME
 chattr \- change file attributes on a Linux second extended file system
 .SH SYNOPSIS
index ef21024..05afde9 100644 (file)
@@ -410,7 +410,7 @@ static void fsck_device(char *device)
        int retval;
        char prog[80];
 
-       if (fstype && strncmp(type, "no", 2) && !strchr(type, ','))
+       if (fstype && strncmp(fstype, "no", 2) && !strchr(fstype, ','))
                type = fstype;
 
        if ((fsent = lookup(device))) {
index e88d302..80090a3 100644 (file)
--- a/version.h
+++ b/version.h
@@ -6,6 +6,6 @@
  * under the GNU Public License.
  */
 
-#define E2FSPROGS_VERSION "0.5c"
-#define E2FSPROGS_DATE "27-Oct-95"
+#define E2FSPROGS_VERSION "1.01"
+#define E2FSPROGS_DATE "30-Oct-95"