mirror of https://github.com/vitalif/e2fsprogs
parent
a6a62e5227
commit
297f47a13e
|
@ -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
|
|
@ -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
|
2
README
2
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))) {
|
||||
|
|
Loading…
Reference in New Issue