OSDN Git Service

android-x86/external-e2fsprogs.git
8 years agoblkid: fix LARGEFILE_SOURCE redefined warnings lollipop-x86
Chih-Wei Huang [Fri, 21 Aug 2015 10:03:12 +0000 (18:03 +0800)]
blkid: fix LARGEFILE_SOURCE redefined warnings

8 years agoblkid: fix warnings and remove duplicate code
Chih-Wei Huang [Fri, 21 Aug 2015 09:59:13 +0000 (17:59 +0800)]
blkid: fix warnings and remove duplicate code

Move unicode_16le_to_utf8 to probe.c and export it
so probe_*.c can use it.

8 years agoexfat/f2fs: Fix arm64 builds
Ricardo Cerqueira [Wed, 24 Dec 2014 00:12:26 +0000 (00:12 +0000)]
exfat/f2fs: Fix arm64 builds

Change-Id: I4368df0053bbf70f9fcb8cefab7f1ad037eb424a

8 years agoe2fsprogs: blkid: Add Flash-Friendly File System (f2fs) support
Ketut Putu Kumajaya [Tue, 18 Mar 2014 18:20:03 +0000 (01:20 +0700)]
e2fsprogs: blkid: Add Flash-Friendly File System (f2fs) support

Backported from mainline util-linux

Change-Id: I3afb543ed027786ee20c3e7c9093ff7f5af54a04

8 years agoblkid: Add support for probing exFAT
Steve Kondik [Sat, 6 Jul 2013 10:07:31 +0000 (03:07 -0700)]
blkid: Add support for probing exFAT

 * e2fsprogs can't currently detect exFAT filesystems.
 * Apply patch from GoogleTV to add support.

Change-Id: Ib08bdb1d13e995d133a62539e3bfa0e3a22eeead

8 years agoFix dev time initialization for cache age caculation
Jaap Versteegh [Sat, 26 Jan 2013 17:13:28 +0000 (18:13 +0100)]
Fix dev time initialization for cache age caculation

dev->bid_time was initialized to INT_MIN causing an
overflow in cache age calculation, which in turn
caused a new device structure to not be filled with
data due to assumed up-to-date values.

Change-Id: I232e0a57d52777cf0ae6f5f7d01cbf8601a9011f

9 years agotune2fs: Allow building it as a static lib
JP Abgrall [Fri, 21 Nov 2014 07:19:25 +0000 (23:19 -0800)]
tune2fs: Allow building it as a static lib

This allows getting all of tune2fs as a static library.
The entry point is
  int tune2fs_main(int argc, char **argv).
It requires passing argv[0]="tune2fs" to get tune2fs behavior.

Bug: 18430740
Change-Id: I7bf8d96c53066a4da37778c0d67383b0b820e2ff

9 years agoam 24c386ed: lib/uuid: make a static library also (fix build)
JP Abgrall [Mon, 30 Jun 2014 21:13:49 +0000 (21:13 +0000)]
am 24c386ed: lib/uuid: make a static library also (fix build)

* commit '24c386ed46cd767edc2fd0e5e2e2b8a4790d109d':
  lib/uuid: make a static library also (fix build)

9 years agolib/uuid: make a static library also (fix build)
JP Abgrall [Thu, 12 Jun 2014 05:37:12 +0000 (22:37 -0700)]
lib/uuid: make a static library also (fix build)

Change-Id: Idb36204f2d8cadb9564db445d5301f705ce4d043
Signed-off-by: JP Abgrall <jpa@google.com>
(cherry picked from commit a9e24fdeb275a2afc964f511583795052801ad65)

9 years agoam 721f3bc5: Merge "lib/uuid: make a static library also"
JP Abgrall [Wed, 25 Jun 2014 18:46:57 +0000 (18:46 +0000)]
am 721f3bc5: Merge "lib/uuid: make a static library also"

* commit '721f3bc56989b5f4101e646a02d598ddb4a7ff6e':
  lib/uuid: make a static library also

9 years agoMerge "lib/uuid: make a static library also"
JP Abgrall [Wed, 25 Jun 2014 16:36:41 +0000 (16:36 +0000)]
Merge "lib/uuid: make a static library also"

9 years agolib/uuid: make a static library also
JP Abgrall [Thu, 12 Jun 2014 05:37:12 +0000 (22:37 -0700)]
lib/uuid: make a static library also

Change-Id: Idb36204f2d8cadb9564db445d5301f705ce4d043
Signed-off-by: JP Abgrall <jpa@google.com>
9 years agolib/uuid: make a static library also
JP Abgrall [Thu, 12 Jun 2014 05:37:12 +0000 (22:37 -0700)]
lib/uuid: make a static library also

Change-Id: Idb36204f2d8cadb9564db445d5301f705ce4d043
Signed-off-by: JP Abgrall <jpa@google.com>
9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Thu, 22 May 2014 14:21:49 +0000 (07:21 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Thu, 22 May 2014 12:49:59 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Wed, 21 May 2014 12:49:50 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Tue, 20 May 2014 12:49:49 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Mon, 19 May 2014 12:49:37 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sun, 18 May 2014 12:49:40 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sat, 17 May 2014 12:50:20 +0000 (05:50 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Thu, 15 May 2014 12:50:21 +0000 (05:50 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Wed, 14 May 2014 12:50:13 +0000 (05:50 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Tue, 13 May 2014 12:49:54 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Mon, 12 May 2014 12:49:34 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sun, 11 May 2014 12:49:34 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sat, 10 May 2014 12:49:56 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Thu, 8 May 2014 12:49:54 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Wed, 7 May 2014 16:10:49 +0000 (09:10 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Wed, 7 May 2014 12:49:57 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Tue, 6 May 2014 12:49:54 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Mon, 5 May 2014 12:49:41 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sun, 4 May 2014 12:49:40 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sat, 3 May 2014 12:50:29 +0000 (05:50 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Thu, 1 May 2014 12:49:49 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Wed, 30 Apr 2014 12:50:00 +0000 (05:50 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Tue, 29 Apr 2014 12:49:55 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Mon, 28 Apr 2014 12:49:30 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

9 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sun, 27 Apr 2014 12:49:33 +0000 (05:49 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

10 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Sat, 26 Apr 2014 12:50:25 +0000 (05:50 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

10 years agomerge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe
The Android Automerger [Thu, 24 Apr 2014 12:50:52 +0000 (05:50 -0700)]
merge in master-release history after reset to 2079d768f79f636223d89b988a30209adf8dddbe

10 years agoam 78374f04: Merge "llseek: setup the correct seek for ext2fs_llseek"
JP Abgrall [Mon, 24 Mar 2014 22:36:52 +0000 (22:36 +0000)]
am 78374f04: Merge "llseek: setup the correct seek for ext2fs_llseek"

* commit '78374f0476e3af9060362028e99085e1c200514b':
  llseek: setup the correct seek for ext2fs_llseek

10 years agoMerge "llseek: setup the correct seek for ext2fs_llseek"
JP Abgrall [Mon, 24 Mar 2014 17:33:48 +0000 (17:33 +0000)]
Merge "llseek: setup the correct seek for ext2fs_llseek"

10 years agomerge in master-release history after reset to master
The Android Automerger [Sat, 22 Mar 2014 12:51:18 +0000 (05:51 -0700)]
merge in master-release history after reset to master

10 years agoe2fsck: remove unneeded type redefinitions
JP Abgrall [Thu, 6 Mar 2014 03:42:19 +0000 (19:42 -0800)]
e2fsck: remove unneeded type redefinitions

Or else ...:
  In file included from e2fsck/pass5.c:21:
  e2fsck/problem.h:13: error: redefinition of typedef ‘__u32’
  lib/ext2fs/ext2_types.h:56: error: previous declaration of ‘__u32’ was here
  e2fsck/problem.h:14: error: redefinition of typedef ‘errcode_t’
  lib/et/com_err.h:22: error: previous declaration of ‘errcode_t’ was here

Change-Id: I0a1ff3b2455bfbaf1e3d0940034a7dbcc231a0f7
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agollseek: setup the correct seek for ext2fs_llseek
JP Abgrall [Thu, 20 Mar 2014 02:31:35 +0000 (19:31 -0700)]
llseek: setup the correct seek for ext2fs_llseek

After
  http://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/commit/lib/ext2fs/llseek.c?id=274d46e1d35af423d0292d63c4d0ad7a03be82ba

with
  __linux__
  defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE)
  SIZEOF_OFF_T >= SIZEOF_LONG_LONG
it leads to ext2fs_llseek() doing a "return lseek(fd, offset, origin);"
Which  fails for offsets > 32bit.

Also, with
  __linux__
  !(defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE))
  defined(HAVE_LLSEEK)
  SIZEOF_OFF_T == SIZEOF_LONG_LONG
my_llseek is not defined at all. And there is no need to define
llseek as lseek, as llseek is never used.
Luckily ext2fs_llseek() then does "return lseek(...);"
It would seem that my_llseek should be used in both places.

Bug: 13340735
Change-Id: Ie7330300c9c1ca103eaaef97536dcf10adbbba02
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agollseek: setup the correct seek for ext2fs_llseek
JP Abgrall [Thu, 20 Mar 2014 02:31:35 +0000 (19:31 -0700)]
llseek: setup the correct seek for ext2fs_llseek

After
  http://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/commit/lib/ext2fs/llseek.c?id=274d46e1d35af423d0292d63c4d0ad7a03be82ba

with
  __linux__
  defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE)
  SIZEOF_OFF_T >= SIZEOF_LONG_LONG
it leads to ext2fs_llseek() doing a "return lseek(fd, offset, origin);"
Which  fails for offsets > 32bit.

Also, with
  __linux__
  !(defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE))
  defined(HAVE_LLSEEK)
  SIZEOF_OFF_T == SIZEOF_LONG_LONG
my_llseek is not defined at all. And there is no need to define
llseek as lseek, as llseek is never used.
Luckily ext2fs_llseek() then does "return lseek(...);"
It would seem that my_llseek should be used in both places.

Bug: 13340735
Change-Id: Ie7330300c9c1ca103eaaef97536dcf10adbbba02
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoSwitch back to 1.42.9 now that there is a fix
JP Abgrall [Thu, 20 Mar 2014 02:08:39 +0000 (19:08 -0700)]
Switch back to 1.42.9 now that there is a fix

Revert "Revert changes that moved from 1.41.14 to 1.42.9"

This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.

10 years agoam 9d965309: (-s ours) Merge "e2fsck: remove unneeded type redefinitions"
JP Abgrall [Fri, 7 Mar 2014 03:02:15 +0000 (03:02 +0000)]
am 9d965309: (-s ours) Merge "e2fsck: remove unneeded type redefinitions"

* commit '9d9653095dd3ecb9f86e9347a14f7203f52f3f3e':
  e2fsck: remove unneeded type redefinitions

10 years agoRevert changes that moved from 1.41.14 to 1.42.9
JP Abgrall [Thu, 6 Mar 2014 21:50:20 +0000 (13:50 -0800)]
Revert changes that moved from 1.41.14 to 1.42.9

Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H"
  commit e80e74c41d85ff93f3d212ba6512340f48054a93.

Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master"
  This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing
  changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df.

Revert "Prepare for upstream 1.42.9"
 This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df.

Bug: 13340735
Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoRevert changes that moved from 1.41.14 to 1.42.9
JP Abgrall [Thu, 6 Mar 2014 21:50:20 +0000 (13:50 -0800)]
Revert changes that moved from 1.41.14 to 1.42.9

Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H"
  commit e80e74c41d85ff93f3d212ba6512340f48054a93.

Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master"
  This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing
  changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df.

Revert "Prepare for upstream 1.42.9"
 This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df.

Bug: 13340735
Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoMerge "e2fsck: remove unneeded type redefinitions"
JP Abgrall [Thu, 6 Mar 2014 18:18:49 +0000 (18:18 +0000)]
Merge "e2fsck: remove unneeded type redefinitions"

10 years agoe2fsck: remove unneeded type redefinitions
JP Abgrall [Thu, 6 Mar 2014 03:42:19 +0000 (19:42 -0800)]
e2fsck: remove unneeded type redefinitions

Or else ...:
  In file included from e2fsck/pass5.c:21:
  e2fsck/problem.h:13: error: redefinition of typedef ‘__u32’
  lib/ext2fs/ext2_types.h:56: error: previous declaration of ‘__u32’ was here
  e2fsck/problem.h:14: error: redefinition of typedef ‘errcode_t’
  lib/et/com_err.h:22: error: previous declaration of ‘errcode_t’ was here

Change-Id: I0a1ff3b2455bfbaf1e3d0940034a7dbcc231a0f7
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoam 166bc333: Merge "e2fsck: Don\'t use e2fsck_global_ctx unless HAVE_SIGNAL_H"
JP Abgrall [Tue, 4 Mar 2014 23:51:32 +0000 (23:51 +0000)]
am 166bc333: Merge "e2fsck: Don\'t use e2fsck_global_ctx unless HAVE_SIGNAL_H"

* commit '166bc3339ab0914cf1c2e316e2143ccfefec2ae4':
  e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H

10 years agoe2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H
JP Abgrall [Tue, 4 Mar 2014 21:24:25 +0000 (13:24 -0800)]
e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H

Program received signal SIGSEGV, Segmentation fault.
0x56577382 in e2fsck_set_bitmap_type (fs=0x5658c2b8, default_type=2, profile_name=0x56580e12 "default", old_type=0x0) at external/e2fsprogs/e2fsck/util.c:797
797             profile_get_uint(e2fsck_global_ctx->profile, "bitmaps",

e2fsck_global_ctx is only ever initialized in unix.c PRS()
if HAVE_SIGNAL_H is defined.

Change-Id: Ic93fb8d9114054f7bf8512c622b2fb9b2ae60584
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoMerge "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H"
JP Abgrall [Tue, 4 Mar 2014 21:31:04 +0000 (21:31 +0000)]
Merge "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H"

10 years agoe2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H
JP Abgrall [Tue, 4 Mar 2014 21:24:25 +0000 (13:24 -0800)]
e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H

Program received signal SIGSEGV, Segmentation fault.
0x56577382 in e2fsck_set_bitmap_type (fs=0x5658c2b8, default_type=2, profile_name=0x56580e12 "default", old_type=0x0) at external/e2fsprogs/e2fsck/util.c:797
797             profile_get_uint(e2fsck_global_ctx->profile, "bitmaps",

e2fsck_global_ctx is only ever initialized in unix.c PRS()
if HAVE_SIGNAL_H is defined.

Change-Id: Ic93fb8d9114054f7bf8512c622b2fb9b2ae60584
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoMerge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master
JP Abgrall [Tue, 4 Mar 2014 02:44:03 +0000 (18:44 -0800)]
Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master

* linaro/linaro-1.42.9: (4262 commits)
  Add missing libext2_quota linkage and resource_track.c
  Fix blkid time diff bug, build binary.
  Add files that would normally be generated by the e2fsprogs build system
  Re-add Android makefiles from AOSP master
  Update release notes, etc., for final 1.42.9 release
  po: update vi.po (from translationproject.org)
  po: update tr.po (from translationproject.org)
  po: update sv.po (from translationproject.org)
  po: update pl.po (from translationproject.org)
  po: update nl.po (from translationproject.org)
  po: update fr.po (from translationproject.org)
  po: update de.po (from translationproject.org)
  po: update cs.po (from translationproject.org)
  po: update ca.po (from translationproject.org)
  e2freefrag: avoid integer overflow when reporting free space statistics
  debugfs: document the lsdel command in the man page
  mke2fs: clarify documentation about bigalloc in the man page
  debian: fix cross build support
  mke2fs: clarify the description of the -I option in the man page
  debian: update debian-policy conormance to 3.9.5
  ...

10 years agoPrepare for upstream 1.42.9
JP Abgrall [Tue, 4 Mar 2014 02:43:55 +0000 (18:43 -0800)]
Prepare for upstream 1.42.9

Remove everything.

Change-Id: I6ef4c9bc888a245744d7ec4d193857b357472392
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoAdd missing libext2_quota linkage and resource_track.c
Bernhard Rosenkraenzer [Wed, 19 Feb 2014 10:46:32 +0000 (11:46 +0100)]
Add missing libext2_quota linkage and resource_track.c

Change-Id: If3983d882f97c5b4cfaf2a177d5d84c68c66fad3
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
10 years agoFix blkid time diff bug, build binary.
Jeff Sharkey [Wed, 16 Oct 2013 22:42:12 +0000 (15:42 -0700)]
Fix blkid time diff bug, build binary.

When calculating time diffs, use difftime() instead of risking
integer overflow.  Also build a "blkid" binary.

Bug: 11175082
Change-Id: I23521f45204574bb32f152926401c2cbad93175b

10 years agoAdd files that would normally be generated by the e2fsprogs build system
Bernhard Rosenkränzer [Tue, 31 Dec 2013 13:43:20 +0000 (14:43 +0100)]
Add files that would normally be generated by the e2fsprogs build system

Android doesn't run ./configure and friends, so it has to rely on
pre-populated versions of the autogenerated files.

This is somewhat bogus (e.g. hardcoded little-endian reference in
lib/ext2fs/ext2_types.h) and should at some point be fixed, but it's
what Android has always done, not a regression from the 1.41.14 branch.

Also, don't #include config.h which we don't generate (we pass what it
usually contains as -D parameters from Android.mk) anywhere.

Add a new Android.mk file for the quota library.

Change-Id: I162c6327fee5bd06261d9cdcc34bda10f04a6f21
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
10 years agoRe-add Android makefiles from AOSP master
Bernhard Rosenkränzer [Tue, 31 Dec 2013 13:13:18 +0000 (14:13 +0100)]
Re-add Android makefiles from AOSP master

Change-Id: I6c6dbe11baa395442f4cf845ad39801f1c426129
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
10 years agoUpdate release notes, etc., for final 1.42.9 release
Theodore Ts'o [Sun, 29 Dec 2013 03:39:41 +0000 (22:39 -0500)]
Update release notes, etc., for final 1.42.9 release

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Sun, 29 Dec 2013 03:34:45 +0000 (22:34 -0500)]
po: update vi.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update tr.po (from translationproject.org)
Volkan Gezer [Sun, 29 Dec 2013 03:34:45 +0000 (22:34 -0500)]
po: update tr.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update sv.po (from translationproject.org)
Göran Uddeborg [Sun, 29 Dec 2013 03:34:45 +0000 (22:34 -0500)]
po: update sv.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Sun, 29 Dec 2013 03:34:45 +0000 (22:34 -0500)]
po: update pl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Sun, 29 Dec 2013 03:34:45 +0000 (22:34 -0500)]
po: update nl.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update fr.po (from translationproject.org)
Samuel Thibault [Sun, 29 Dec 2013 03:34:45 +0000 (22:34 -0500)]
po: update fr.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update de.po (from translationproject.org)
Philipp Thomas [Sun, 29 Dec 2013 03:34:44 +0000 (22:34 -0500)]
po: update de.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Sun, 29 Dec 2013 03:34:44 +0000 (22:34 -0500)]
po: update cs.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agopo: update ca.po (from translationproject.org)
Walter Garcia-Fontes [Sun, 29 Dec 2013 03:34:44 +0000 (22:34 -0500)]
po: update ca.po (from translationproject.org)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 years agoe2freefrag: avoid integer overflow when reporting free space statistics
Theodore Ts'o [Sun, 29 Dec 2013 03:25:11 +0000 (22:25 -0500)]
e2freefrag: avoid integer overflow when reporting free space statistics

An integer overflow could happen if the file system is large and has
very large contiguous chunks of free space.

Addresses-Debian-Bug: #718205

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agodebugfs: document the lsdel command in the man page
Theodore Ts'o [Sun, 29 Dec 2013 03:15:59 +0000 (22:15 -0500)]
debugfs: document the lsdel command in the man page

Addresses-Debian-Bug: #731329

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agomke2fs: clarify documentation about bigalloc in the man page
Theodore Ts'o [Sat, 28 Dec 2013 22:50:54 +0000 (17:50 -0500)]
mke2fs: clarify documentation about bigalloc in the man page

Addresses-Debian-Bug: #669730

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agodebian: fix cross build support
Theodore Ts'o [Sat, 28 Dec 2013 22:21:17 +0000 (17:21 -0500)]
debian: fix cross build support

We need to explicitly specify the $DEB_BUILD_HOST when querying for
the version of the libblkid1 package.

Addresses-Debian-Bug: #721365

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agomke2fs: clarify the description of the -I option in the man page
Theodore Ts'o [Sat, 28 Dec 2013 22:06:38 +0000 (17:06 -0500)]
mke2fs: clarify the description of the -I option in the man page

Addresses-Debian-Bug: #698076

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agodebian: update debian-policy conormance to 3.9.5
Theodore Ts'o [Sat, 28 Dec 2013 21:28:56 +0000 (16:28 -0500)]
debian: update debian-policy conormance to 3.9.5

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agogen-tarball: ignore all of the build* directories
Theodore Ts'o [Sat, 28 Dec 2013 20:57:29 +0000 (15:57 -0500)]
gen-tarball: ignore all of the build* directories

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoUse makeinfo --html instead of texi2html
Theodore Ts'o [Sat, 28 Dec 2013 20:40:56 +0000 (15:40 -0500)]
Use makeinfo --html instead of texi2html

The texi2html utility from the texi2html ceased being developed
upstream in 2011, and upstream has declared it superseded by the
makeinfo utility from the texinfo package.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: Clarify e2image's usage message
Theodore Ts'o [Fri, 27 Dec 2013 06:08:25 +0000 (01:08 -0500)]
e2image: Clarify e2image's usage message

Also reflect a similar change to e2image's man page.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: write progress information to stderr
Theodore Ts'o [Fri, 27 Dec 2013 06:04:32 +0000 (01:04 -0500)]
e2image: write progress information to stderr

This allows "e2image -rp /dev/sdc1 - | bzip2 > sdc1.img.bz2" to work
correctly, so the progress information doesn't corrupt the image being
sent to stdout.

Also add a diagnostic indicating that the -p option is currently only
implemented for raw mode.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: clean up progress reporting
Theodore Ts'o [Fri, 27 Dec 2013 04:45:17 +0000 (23:45 -0500)]
e2image: clean up progress reporting

The old progress reporting code would crash on small file systems.
For example:

    cp /dev/null /tmp/foo.img
    mke2fs -t ext4 -F /tmp/foo.img 100
    e2image -o 0 -O 4096 -rap /tmp/foo.img

Fix this, and while we're at it, factor out the code to make it easier
to read and maintain.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agotests: fix stray newline printed when running r_min_itable
Theodore Ts'o [Thu, 26 Dec 2013 05:37:09 +0000 (00:37 -0500)]
tests: fix stray newline printed when running r_min_itable

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agodumpe2fs: don't try to print the journal info when using image files
Theodore Ts'o [Thu, 26 Dec 2013 03:53:00 +0000 (22:53 -0500)]
dumpe2fs: don't try to print the journal info when using image files

If dumpe2fs tries to print journal info when using an image file
created using e2image, it will crash since the journal isn't
available.  So don't even try to print it.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: make sure all strings are marked for internationalization
Theodore Ts'o [Thu, 26 Dec 2013 03:52:23 +0000 (22:52 -0500)]
e2image: make sure all strings are marked for internationalization

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: add -n option to show what blocks would have been written
Theodore Ts'o [Thu, 26 Dec 2013 01:22:03 +0000 (20:22 -0500)]
e2image: add -n option to show what blocks would have been written

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: add -c option to optimize file system copying for flash devices
Theodore Ts'o [Wed, 25 Dec 2013 21:46:39 +0000 (16:46 -0500)]
e2image: add -c option to optimize file system copying for flash devices

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: only skip writing zero blocks when writing to a new file
Theodore Ts'o [Wed, 25 Dec 2013 21:33:52 +0000 (16:33 -0500)]
e2image: only skip writing zero blocks when writing to a new file

The e2image progam was originally intended to create image files.
However, some people have started using e2image to copy a file system
from one block device to another, since it is more efficient than
using dd because it only copies the blocks which are in use.  If we
are doing this, however, we must not skip writing blocks which are all
zero in the source device, since they may not be zero in the
destination device.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Phillip Susi <psusi@ubuntu.com>
10 years agoe2image: clean up gcc -Wall and sparse nits
Theodore Ts'o [Wed, 25 Dec 2013 19:26:44 +0000 (14:26 -0500)]
e2image: clean up gcc -Wall and sparse nits

Fix up the gcc -Wall and sparse nits introduced by Phillip Susi's
e2image patches.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Phillip Susi <psusi@ubuntu.com>
10 years agoe2image: refactor calls to ext2fs_llseek()
Theodore Ts'o [Wed, 25 Dec 2013 19:20:22 +0000 (14:20 -0500)]
e2image: refactor calls to ext2fs_llseek()

Refactor calls to ext2fs_llseek().  This makes the code more compact,
easier to read, and it also fixes a number of places where we call
ext2fs_llseek() without doing proper error checking.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: handle SIGINT safely
Phillip Susi [Wed, 25 Dec 2013 04:41:34 +0000 (23:41 -0500)]
e2image: handle SIGINT safely

When doing an in place move, interrupting it past the
point of no return will destroy the filesystem since
parts of it have been overwritten.  Catch SIGINT the
first time and issue a warning if this is the case.

Signed-off-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: add progress indicator
Phillip Susi [Tue, 8 Oct 2013 15:56:31 +0000 (11:56 -0400)]
e2image: add progress indicator

When given the -p switch, print progress information, including
block counts, percentage complete, estimated time remaining, and
throughput.

Signed-off-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: perform in-place move
Phillip Susi [Mon, 16 Dec 2013 16:33:19 +0000 (11:33 -0500)]
e2image: perform in-place move

If given at least one offset and only one file, assume source
and dest are the same, and do an in place move.

Signed-off-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agoe2image: add offset switches
Phillip Susi [Mon, 16 Dec 2013 16:32:39 +0000 (11:32 -0500)]
e2image: add offset switches

Add -o and -O switches to specify the offset where the source
and destination filesystems start.  This is useful if you have
an image of a partitioned disk or wish to create one.

Signed-off-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agolibext2fs: checksum bg descriptors larger than 64 bytes
Theodore Ts'o [Wed, 25 Dec 2013 04:19:07 +0000 (23:19 -0500)]
libext2fs: checksum bg descriptors larger than 64 bytes

Currently the ext4 block group descriptor is 64 bytes.  In case we
need to support larger block group descriptors in the future, teach
ext2fs_group_desc_csum() to checksum parts of the block group
descriptors that libext2fs doesn't yet understand.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agotests: use the in-tree binaries in the test f_extent_oobounds
Theodore Ts'o [Wed, 25 Dec 2013 03:44:14 +0000 (22:44 -0500)]
tests: use the in-tree binaries in the test f_extent_oobounds

Fix the f_extent_oobounds test so that it uses binaries built in the
tree, instead of the binaries in the system PATH (which might not
exist in a chroot environment) when creating the test image.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agodebugfs: fix extent header in do_write for big-endian machines
Theodore Ts'o [Wed, 25 Dec 2013 03:40:01 +0000 (22:40 -0500)]
debugfs: fix extent header in do_write for big-endian machines

Commit a17e9f30 set up the extent header for a new file.
Unfortunately it didn't correctly handle byte swapping; fix this so
the regression tests pass on PowerPC systems.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Eric Sandeen <sandeen@redhat.com>
10 years agoAdd ext4 man page and update and clean up the other man pages
Theodore Ts'o [Tue, 24 Dec 2013 20:15:31 +0000 (15:15 -0500)]
Add ext4 man page and update and clean up the other man pages

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 years agodebugfs: silence build warning and remove incorrect error message
Eric Whitney [Tue, 24 Dec 2013 16:04:42 +0000 (11:04 -0500)]
debugfs: silence build warning and remove incorrect error message

Commit fe56188b07 modified the code used to check the block number
argument to the command line -s switch, adding a call to com_err().
This causes a compile time warning because the third argument to
com_err() isn't a string.  Also, when the block number argument is
bad it outputs an incorrect error message - "Operation not permitted".

Fix these minor problems by removing the call to com_err().  Other
code provides enough error reporting information in this case.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>