mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-23 18:14:25 +08:00
Merge branch 'maint' into next
This commit is contained in:
commit
3829c16c10
4
configure
vendored
4
configure
vendored
@ -7236,6 +7236,8 @@ main ()
|
|||||||
if (*(data + i) != *(data3 + i))
|
if (*(data + i) != *(data3 + i))
|
||||||
return 14;
|
return 14;
|
||||||
close (fd);
|
close (fd);
|
||||||
|
free (data);
|
||||||
|
free (data3);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
@ -12369,7 +12371,7 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
|
for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||||
|
@ -946,6 +946,7 @@ AC_CHECK_HEADERS(m4_flatten([
|
|||||||
sys/types.h
|
sys/types.h
|
||||||
sys/un.h
|
sys/un.h
|
||||||
sys/wait.h
|
sys/wait.h
|
||||||
|
sys/xattr.h
|
||||||
]))
|
]))
|
||||||
dnl Check where to find a dd(1) that supports iflag=fullblock
|
dnl Check where to find a dd(1) that supports iflag=fullblock
|
||||||
dnl and oflag=append
|
dnl and oflag=append
|
||||||
|
3
debian/control.in
vendored
3
debian/control.in
vendored
@ -38,6 +38,7 @@ Priority: optional
|
|||||||
Depends: e2fsprogs (>= ${binary:Version}), e2fsprogs (<< ${binary:Version}+c~), ${misc:Depends}
|
Depends: e2fsprogs (>= ${binary:Version}), e2fsprogs (<< ${binary:Version}+c~), ${misc:Depends}
|
||||||
Replaces: e2fsprogs (<< 1.43.5-1)
|
Replaces: e2fsprogs (<< 1.43.5-1)
|
||||||
Architecture: all
|
Architecture: all
|
||||||
|
Multi-Arch: foreign
|
||||||
Description: ext2/ext3/ext4 file system utilities - translations
|
Description: ext2/ext3/ext4 file system utilities - translations
|
||||||
The ext2, ext3 and ext4 file systems are successors of the original ext
|
The ext2, ext3 and ext4 file systems are successors of the original ext
|
||||||
("extended") file system. They are the main file system types used for
|
("extended") file system. They are the main file system types used for
|
||||||
@ -66,6 +67,7 @@ Depends: libc6-dev | libc-dev, libcomerr2 (= ${mainBinary}), ${misc:Depends}
|
|||||||
Suggests: doc-base
|
Suggests: doc-base
|
||||||
Replaces: e2fslibs-dev (<< 1.33-2), libkrb5-dev (<< 1.3)
|
Replaces: e2fslibs-dev (<< 1.33-2), libkrb5-dev (<< 1.3)
|
||||||
Architecture: any
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
Description: common error description library - headers and static libraries
|
Description: common error description library - headers and static libraries
|
||||||
libcom_err is an attempt to present a common error-handling mechanism to
|
libcom_err is an attempt to present a common error-handling mechanism to
|
||||||
manipulate the most common form of error code in a fashion that does not
|
manipulate the most common form of error code in a fashion that does not
|
||||||
@ -92,6 +94,7 @@ Section: libdevel
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: libc6-dev | libc-dev, libss2 (= ${mainBinary}), comerr-dev, ${misc:Depends}
|
Depends: libc6-dev | libc-dev, libss2 (= ${mainBinary}), comerr-dev, ${misc:Depends}
|
||||||
Architecture: any
|
Architecture: any
|
||||||
|
Multi-Arch: same
|
||||||
Description: command-line interface parsing library - headers and static libraries
|
Description: command-line interface parsing library - headers and static libraries
|
||||||
This package includes a tool that parses a command table to generate
|
This package includes a tool that parses a command table to generate
|
||||||
a simple command-line interface parser, the include files needed to
|
a simple command-line interface parser, the include files needed to
|
||||||
|
26
debian/e2fsprogs-l10n.copyright
vendored
Normal file
26
debian/e2fsprogs-l10n.copyright
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
This is the Debian GNU/Linux prepackaged version of the translation
|
||||||
|
files of the EXT2 file system utilities. The EXT2 utilities were
|
||||||
|
written by Theodore Ts'o <tytso@mit.edu> and Remy Card
|
||||||
|
<card@masi.ibp.fr>.
|
||||||
|
|
||||||
|
Sources were obtained from http://sourceforge.net/projects/e2fsprogs
|
||||||
|
|
||||||
|
Packaging is Copyright (c) 2003-2006 Theodore Ts'o <tytso@mit.edu>
|
||||||
|
Copyright (c) 1997-2003 Yann Dirson <dirson@debian.org>
|
||||||
|
Copyright (c) 2001 Alcove <http://www.alcove.com/>
|
||||||
|
Copyright (c) 1997 Klee Dienes
|
||||||
|
Copyright (c) 1995-1996 Michael Nonweiler <mrn20@cam.ac.uk>
|
||||||
|
|
||||||
|
Upstream Author: Theodore Ts'o <tytso@mit.edu>
|
||||||
|
|
||||||
|
Copyright notice:
|
||||||
|
|
||||||
|
This package, the EXT2 filesystem utilities, is protected by the GNU
|
||||||
|
Public License.
|
||||||
|
|
||||||
|
Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
||||||
|
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Theodore Ts'o
|
||||||
|
|
||||||
|
On Debian GNU systems, the complete text of the GNU General
|
||||||
|
Public License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||||
|
|
@ -106,7 +106,7 @@ static void show_stats(e2fsck_t ctx)
|
|||||||
unsigned int dir_links;
|
unsigned int dir_links;
|
||||||
unsigned int num_files, num_links;
|
unsigned int num_files, num_links;
|
||||||
__u32 *mask, m;
|
__u32 *mask, m;
|
||||||
int frag_percent_file, frag_percent_dir, frag_percent_total;
|
int frag_percent_file = 0, frag_percent_dir = 0, frag_percent_total = 0;
|
||||||
int i, j, printed = 0;
|
int i, j, printed = 0;
|
||||||
|
|
||||||
dir_links = 2 * ctx->fs_directory_count - 1;
|
dir_links = 2 * ctx->fs_directory_count - 1;
|
||||||
@ -119,16 +119,18 @@ static void show_stats(e2fsck_t ctx)
|
|||||||
blocks_used = (ext2fs_blocks_count(fs->super) -
|
blocks_used = (ext2fs_blocks_count(fs->super) -
|
||||||
ext2fs_free_blocks_count(fs->super));
|
ext2fs_free_blocks_count(fs->super));
|
||||||
|
|
||||||
frag_percent_file = (10000 * ctx->fs_fragmented) / inodes_used;
|
if (inodes_used > 0) {
|
||||||
frag_percent_file = (frag_percent_file + 5) / 10;
|
frag_percent_file = (10000 * ctx->fs_fragmented) / inodes_used;
|
||||||
|
frag_percent_file = (frag_percent_file + 5) / 10;
|
||||||
|
|
||||||
frag_percent_dir = (10000 * ctx->fs_fragmented_dir) / inodes_used;
|
frag_percent_dir = (10000 * ctx->fs_fragmented_dir) / inodes_used;
|
||||||
frag_percent_dir = (frag_percent_dir + 5) / 10;
|
frag_percent_dir = (frag_percent_dir + 5) / 10;
|
||||||
|
|
||||||
frag_percent_total = ((10000 * (ctx->fs_fragmented +
|
frag_percent_total = ((10000 * (ctx->fs_fragmented +
|
||||||
ctx->fs_fragmented_dir))
|
ctx->fs_fragmented_dir))
|
||||||
/ inodes_used);
|
/ inodes_used);
|
||||||
frag_percent_total = (frag_percent_total + 5) / 10;
|
frag_percent_total = (frag_percent_total + 5) / 10;
|
||||||
|
}
|
||||||
|
|
||||||
if (!verbose) {
|
if (!verbose) {
|
||||||
log_out(ctx, _("%s: %u/%u files (%0d.%d%% non-contiguous), "
|
log_out(ctx, _("%s: %u/%u files (%0d.%d%% non-contiguous), "
|
||||||
|
@ -545,6 +545,9 @@
|
|||||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
||||||
#undef HAVE_SYS_WAIT_H
|
#undef HAVE_SYS_WAIT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/xattr.h> header file. */
|
||||||
|
#undef HAVE_SYS_XATTR_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <termios.h> header file. */
|
/* Define to 1 if you have the <termios.h> header file. */
|
||||||
#undef HAVE_TERMIOS_H
|
#undef HAVE_TERMIOS_H
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ int ext2fs_digest_decode(const char *src, int len, char *dst)
|
|||||||
static const struct {
|
static const struct {
|
||||||
unsigned char d[32];
|
unsigned char d[32];
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
const unsigned char *ed;
|
const char *ed;
|
||||||
} tests[] = {
|
} tests[] = {
|
||||||
{ { 0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14,
|
{ { 0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14,
|
||||||
0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24,
|
0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24,
|
||||||
@ -126,9 +126,9 @@ static const struct {
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i, ret, len, len2;
|
int i, ret, len;
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
unsigned char tmp[1024], tmp2[1024];
|
char tmp[1024], tmp2[1024];
|
||||||
|
|
||||||
if (argc == 3 && !strcmp(argv[1], "encode")) {
|
if (argc == 3 && !strcmp(argv[1], "encode")) {
|
||||||
memset(tmp, 0, sizeof(tmp));
|
memset(tmp, 0, sizeof(tmp));
|
||||||
@ -145,7 +145,8 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
|
for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
|
||||||
memset(tmp, 0, sizeof(tmp));
|
memset(tmp, 0, sizeof(tmp));
|
||||||
ret = ext2fs_digest_encode(tests[i].d, tests[i].len, tmp);
|
ret = ext2fs_digest_encode((const char *) tests[i].d,
|
||||||
|
tests[i].len, tmp);
|
||||||
len = strlen(tmp);
|
len = strlen(tmp);
|
||||||
printf("Test Digest %d (returned %d): ", i, ret);
|
printf("Test Digest %d (returned %d): ", i, ret);
|
||||||
if (ret != len) {
|
if (ret != len) {
|
||||||
|
@ -235,7 +235,6 @@ int main(int argc, char **argv)
|
|||||||
int i;
|
int i;
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
unsigned char tmp[32];
|
unsigned char tmp[32];
|
||||||
struct hash_state md;
|
|
||||||
|
|
||||||
for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
|
for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
|
||||||
unsigned char *msg = (unsigned char *) tests[i].msg;
|
unsigned char *msg = (unsigned char *) tests[i].msg;
|
||||||
|
@ -283,7 +283,6 @@ int main(int argc, char **argv)
|
|||||||
int i;
|
int i;
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
unsigned char tmp[64];
|
unsigned char tmp[64];
|
||||||
struct hash_state md;
|
|
||||||
|
|
||||||
for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
|
for (i = 0; i < (int)(sizeof(tests) / sizeof(tests[0])); i++) {
|
||||||
unsigned char *msg = (unsigned char *) tests[i].msg;
|
unsigned char *msg = (unsigned char *) tests[i].msg;
|
||||||
|
@ -392,19 +392,19 @@ fuse2fs: $(FUSE2FS_OBJS) $(DEPLIBS) $(DEPLIBBLKID) $(DEPLIBUUID) \
|
|||||||
$(CLOCK_GETTIME_LIB) $(SYSLIBS)
|
$(CLOCK_GETTIME_LIB) $(SYSLIBS)
|
||||||
|
|
||||||
journal.o: $(srcdir)/../debugfs/journal.c
|
journal.o: $(srcdir)/../debugfs/journal.c
|
||||||
$(E) " CC $@"
|
$(E) " CC $<"
|
||||||
$(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
|
$(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
|
||||||
$(srcdir)/../debugfs/journal.c -o $@
|
$(srcdir)/../debugfs/journal.c -o $@
|
||||||
@PROFILE_CMT@ $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
@PROFILE_CMT@ $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
||||||
|
|
||||||
recovery.o: $(srcdir)/../e2fsck/recovery.c
|
recovery.o: $(srcdir)/../e2fsck/recovery.c
|
||||||
$(E) " CC $@"
|
$(E) " CC $<"
|
||||||
$(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
|
$(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
|
||||||
$(srcdir)/../e2fsck/recovery.c -o $@
|
$(srcdir)/../e2fsck/recovery.c -o $@
|
||||||
@PROFILE_CMT@ $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
@PROFILE_CMT@ $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
||||||
|
|
||||||
revoke.o: $(srcdir)/../e2fsck/revoke.c
|
revoke.o: $(srcdir)/../e2fsck/revoke.c
|
||||||
$(E) " CC $@"
|
$(E) " CC $<"
|
||||||
$(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
|
$(Q) $(CC) -c $(JOURNAL_CFLAGS) -I$(srcdir) \
|
||||||
$(srcdir)/../e2fsck/revoke.c -o $@
|
$(srcdir)/../e2fsck/revoke.c -o $@
|
||||||
@PROFILE_CMT@ $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
@PROFILE_CMT@ $(Q) $(CC) $(JOURNAL_CFLAGS) -g -pg -o profiled/$*.o -c $<
|
||||||
|
@ -18,7 +18,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h> /* for PATH_MAX */
|
#include <limits.h> /* for PATH_MAX */
|
||||||
#ifdef HAVE_ATTR_XATTR_H
|
#if defined HAVE_SYS_XATTR_H
|
||||||
|
#include <sys/xattr.h>
|
||||||
|
#elif defined HAVE_ATTR_XATTR_H
|
||||||
#include <attr/xattr.h>
|
#include <attr/xattr.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user