History log of /system/core/fastboot/fs.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b68b02ca5ad1a4700ff44c87b30e670fcb4b5370 06-Apr-2018 Jaegeuk Kim <jaegeuk@google.com> fastboot, fs_mgr: set fsverity feature bit

Bug: 74604441
Bug: 67380979
Change-Id: Ia336be99eed42bbd0eab1b22e2cc3179a92d5233
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
/system/core/fastboot/fs.cpp
aa64620eaabc755469c08c91b6dc9af45cf7f4da 06-Dec-2017 Jaegeuk Kim <jaegeuk@google.com> fastboot: support make_f2fs and sload_f2fs for win32

This patch enalbes to use windows tools for f2fs.

Change-Id: Id9109d3d1d8db85f433a20c6a9b18a88daa540d0
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
/system/core/fastboot/fs.cpp
899ad558cd20ffaeed31b9a7f044f769632e5e62 29-Nov-2017 Jaegeuk Kim <jaegeuk@google.com> fastboot/fs_mgr/init: add sload_f2fs

Change-Id: Iab1e4037cbb835aba97f941c8840b8971caf38e7
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
/system/core/fastboot/fs.cpp
0c04f782865e493945aee466c4fff4e73c36a659 06-Dec-2017 Jin Qian <jinqian@google.com> fastboot: fix build break

execvpe is a GNU extension. Use execve instead.

Change-Id: I8bf4b6a4e9fd0cae0239f4c5aa9707f141460a7d
/system/core/fastboot/fs.cpp
03c73e106fee4aa8661b243729c3cd786468215b 05-Dec-2017 Jin Qian <jinqian@google.com> fastboot: pass environment variables to exec_e2fs_cmd

Set MKE2FS_CONFIG to point to a config file that comes with mke2fs
binary.

Change-Id: I1d68726ff8baa0c00b930b32f66c54c298c46b81
/system/core/fastboot/fs.cpp
22088fd2d183115db7408e3477ae6a597cb2f057 30-Nov-2017 Dan Willemsen <dwillemsen@google.com> Mark more win32 parameters as unused

Missed one new instance with my last patch.

Bug: 69933068
Test: m native-host-cross
Change-Id: Ib6d0b994131a0011b3a2f1a4633b21756a9d6732
/system/core/fastboot/fs.cpp
f106bb6bb822740ea35b5974c2f137ef0a662648 30-Nov-2017 Dan Willemsen <dwillemsen@google.com> Merge "Fix / suppress new unused warnings for mingw+clang"
528f144e779dfd18b550d9176aecf36e1130f449 30-Nov-2017 Dan Willemsen <dwillemsen@google.com> Fix / suppress new unused warnings for mingw+clang

Bug: 69933068
Test: mmma system/core
Change-Id: I089166a979d3d8c5ada38a7745d507b555048499
/system/core/fastboot/fs.cpp
8d9b6ee6218b38fbb629df9ee0fdf9a8249394bb 15-Nov-2017 Jaegeuk Kim <jaegeuk@google.com> fastboot: make_f2fs call by linux/darwin

Bug: 69298953
Change-Id: I6a7483e8617b649666247c4ca985384d086f15f8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
/system/core/fastboot/fs.cpp
d872118d885f2eb6697395a951d9cb6c631d3008 03-Oct-2017 Jaegeuk Kim <jaegeuk@google.com> fastboot: support f2fs format

+ quota support

This patch fixes broken f2fs_format by replacing the existing flow with calling
legacy mkfs.f2fs binary explicitly likewise ext4.

This removes obsolete ext4 stuffs as well.

Bug: 67009570
Change-Id: Ia81bcbc7adc3a8b57ada860f7f7871602ac1c6e9
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
/system/core/fastboot/fs.cpp
ebcfa449375fb809b266383d0036a7be3ecdac01 03-Nov-2017 Connor O'Brien <connoro@google.com> Merge "fastboot: handle small flash block sizes correctly"
988a51a9fef3ea50536565f390584af064dc0b38 02-Nov-2017 Jin Qian <jinqian@google.com> fastboot: remove reference of deprecated make_ext4 code

Bug: 64395169
Change-Id: Ida14996dc1488657e7bdeb34d6e767a8f6ed44ed
/system/core/fastboot/fs.cpp
6ef5c24b84252bd601b99c31f1de5dafdb91a66e 02-Nov-2017 Connor O'Brien <connoro@google.com> fastboot: handle small flash block sizes correctly

Erase block sizes smaller than the ext4 block size may be valid, but
can incorrectly result in a stripe width smaller than the stride
size. Instead of reporting these sizes as invalid, add a check to
enforce that raid_stripe_width >= raid_stride.

Bug: 68770797
Test: Hack fb_getvar to report small erase block size, run fastboot
-w and confirm it does not print a warning or set stripe_width smaller
than stride.
Signed-off-by: Connor O'Brien <connoro@google.com>

Change-Id: I689ce4bdd5b38bd0952bb6de54785cca39176010
/system/core/fastboot/fs.cpp
29fc859a6de4f5566652c4f5750e91c965d4b97f 11-Jul-2017 Jin Qian <jinqian@google.com> fastboot: call mke2fs to format ext4 filesystem on windows

Bug: 35219933
Change-Id: I0cc8c165176e8dc9cbe4b6a52679937bc872e2d0
/system/core/fastboot/fs.cpp
99e3964e0deb2f6ded9624262bcbd8b077963f7d 28-Jul-2017 Jin Qian <jinqian@google.com> fastboot: enable uninit_bg for ext4

This speeds up mke2fs as well as e2fsck.

Bug: 23686092
Bug: 64032335
Change-Id: I9f2d4c15e431647bb845d50a2361b2a9a091fba6
/system/core/fastboot/fs.cpp
4afba66781ca0704fdf8b9c73c7773c9531a4c24 19-Apr-2017 Jin Qian <jinqian@google.com> fastboot: call mke2fs tools to generate ext4 image

Set MKE2FS_CONFIG to empty to use mke2fs default configs

Test: fastboot --wipe-and-use-fbe
Bug: 35219933
Change-Id: Ibc97bb125899e1f1fe820d53709fdb2ab291c171
(cherry picked from commit d14d7c14cbe297614bf99dae9bf50b1fc342c44e)
/system/core/fastboot/fs.cpp
4a335829da34c6f4eefeea4c6f0e86f4602c64b9 19-Apr-2017 Jin Qian <jinqian@google.com> fastboot: use filename instead of fd to generate filesystem image

mke2fs tool takes a filename and has its own open function to handle
output file. Change fastboot in preparation to switch from make_ext4
to mke2fs.

Test: fastboot format:ext4 userdata
Bug: 35219933
Change-Id: I7a31cb215f443a4a7cb0bfc23ec28c121a6101e6
/system/core/fastboot/fs.cpp
ce16a8a9408688597d4efd3dc027fc5009e8dcb8 06-Feb-2017 Connor O'Brien <connoro@google.com> Fastboot: use flash erase & logical block size for building userdata

If the bootloader provides erase-block-size and logical-block-size
getvar variables, then pass these to libext4_utils when building a new
userdata image. This info is used to tune stride and stripe-width.

Bug: 33243520
Test: Modify fb_getvar to return values for "erase-block-size" and
"logical-block-size" and check that fastboot -w sets userdata
parameters correctly.
Signed-off-by: Connor O'Brien <connoro@google.com>

Change-Id: Id48b7a3ebb9074983a4422a79a64dcb437c0f888
/system/core/fastboot/fs.cpp
6d881d6db438208a1bce9806753defbb09811962 06-Oct-2016 Tao Bao <tbao@google.com> Update the header path for ext4_utils.

Test: `mmma system/core`

Change-Id: I6291d10d6c8d4972aeca55596baa83f555496193
/system/core/fastboot/fs.cpp
8f7f56e25b2f289cd3d025d717fdc7fa422d1f98 27-Nov-2015 Paul Crowley <paulcrowley@google.com> Add --wipe-and-use-fbe option to fastboot for FBE userdata marker.

With this option, userdata is wiped and recreated with the
"convert_fbe" file in the root, which triggers conversion to FBE.

Bug: 25898323
Change-Id: I9347b7057b6278e7e6437504896b22c82dd01d89
/system/core/fastboot/fs.cpp
8ab9a32323cee1f23c5ccbfeabd2cb2253f693d2 02-Nov-2015 Elliott Hughes <enh@google.com> Clarify and fix the intent of the partition-type checking code.

Change-Id: I202dab4ee91208b632bc2086d1e5c387a4c29edd
/system/core/fastboot/fs.cpp
fc79767fc26d8782403e7b1afa7b93d518a86b19 08-Apr-2015 Elliott Hughes <enh@google.com> Use 64-bit file sizes in fastboot.

Bug: 20110580
Change-Id: I5d3718103ff581ff3b5241c8b0e52b585b4f37e5
/system/core/fastboot/fs.cpp
b3748de33f651597259f52e4645571a1da2e32dd 24-Jun-2015 Elliott Hughes <enh@google.com> Move fastboot to C++.

Minimal conversion.

Change-Id: I32cbf125be481a8757720d10fa303c38a7fd5e38
/system/core/fastboot/fs.cpp