summaryrefslogtreecommitdiff
path: root/f2fs_utils
AgeCommit message (Collapse)Author
2021-08-23Add OWNERS to ext4_utils and f2fs_utils.David Anderson
Bug: N/A Test: N/A Change-Id: I5883a69efe6485f7efa107ee7b2aa9e54b05ba02
2021-06-24Support block map for f2fsJaegeuk Kim
Bug: 190760483 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Change-Id: I9c382695595a31c0438af35be0effa9b3a7b5b49
2021-05-26f2fs_utils: support -O roJaegeuk Kim
"-O ro" sets the filesystem as readonly. Bug: 171942852 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Change-Id: Ia561618557e4e72bcc702b1e1d954a380a90d1b2
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: alloc-stress/Android.bp app-launcher/Android.bp boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp brillo_config/Android.mk checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioblame/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp partition_tools/aidl/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp pssbench/Android.mk puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp zram-perf/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ia559848af903a7b6746d9b12b7de8b83bc57f99d
2021-02-16Revert "[LSC] Add LOCAL_LICENSE_KINDS to system/extras"Bob Badour
This reverts commit 044d055c842a5750359ed71dfe50a6a4bf5f4cc3. Reason for revert: Needs to run as multiple roots. Change-Id: I8e06e7eb19e0f634f52fbd8a1c6662f43e347dd5
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Added legacy_notice to: alloc-stress/Android.bp app-launcher/Android.bp brillo_config/Android.mk ioblame/Android.bp partition_tools/aidl/Android.bp pssbench/Android.mk zram-perf/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ie7c022a4d7f828a89d0cda663684a497af37006e
2020-12-07Enable system partition compressionRobin Hsu
* Prerequisites: external/f2fs-tools: sload compression support * Must work with corresponding changes in 'build' repository * If Board config does not change, it falls back to old behavior, i.e. no compression for the system partition * Kernel f2fs compression support is a prerequisite if the Board config enables the compression (see below) * Necessary board config changes: please refers to the commit message for the corresponding 'Enable system partition compression' commit in build/make repository Bug: 170918499 Test: Pixel4a userdebug build (from build id 6918751) Signed-off-by: Robin Hsu <robinhsu@google.com> Change-Id: I253018e939e0a5c8605b91c04e29863607fac700
2020-11-05Avoid logspam in f2fs_sparseblockEric Biggers
generate_f2fs_info() prints a lot of DEBUG level messages -- about 155 for a mostly-empty filesystem. But the only caller is vold's encrypt_inplace(), which just wants to iterate through all the used blocks. (There's also a cc_binary "f2fs_sparseblock" declared in Andorid.bp, but nothing seems to use it.) The other filesystem details aren't really that important. Indeed, the ext4 equivalent is silent. Avoid this logspam by changing the messages to VERBOSE. This results in a much cleaner log when initializing metadata encryption at first boot. Change-Id: I4e57369ba8db6ac2341b70a88570c812dc99d6a8
2020-10-26f2fs_utils: format filesThiébaud Weksteen
Format *.c according to the new .clang-format. The following command was used to generate this change: $ find . \( -name \*.c -o -name \*.h \) -exec clang-format \ --style=file -i {} \; Test: mm Bug: 171699326 Change-Id: I7b11cd2605b266a31cb10388a39f849711cf23c9
2020-10-23Enable bpfmt repo hookThiébaud Weksteen
Enable the bpfmt hook to automatically format Android.bp files. Fix current Blueprint files. This change has been generated using: $ find . -name Android.bp -exec bpfmt -w {} \; Test: cd system/extras; mm Change-Id: I4c6cc60a1afc13783c3da751291325b7160d52b3
2020-10-15f2fs_util: add compression support for userdata.imgJaegeuk Kim
Bug: 162253911 Bug: 110272315 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Change-Id: I244a64d61f7c2e28b8ed006e7758da0e49bccffa Merged-In: I244a64d61f7c2e28b8ed006e7758da0e49bccffa
2020-08-21Merge "Don't manually add an include directory you're getting anyway."Treehugger Robot
2020-08-20Don't manually add an include directory you're getting anyway.Elliott Hughes
This code already links against liblog, so it gets the liblog headers (from their _correct_ location) for free! Bug: http://b/165825252 Test: treehugger Change-Id: Ib36653220c5975e9fe5a74273c316afda1482b54
2020-08-19f2fs: allow filesystem errors correctedJaegeuk Kim
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Change-Id: I4f6f9dfeee82b802c240e27e59c2e271afbaf463
2020-01-08Allow casefolding and project quotas for f2fsDaniel Rosenberg
Bug: 138321217 Bug: 138322712 Test: Enable on device. Test the /data has options enabled via tune2fs/f2fs.fsck Change-Id: I02abdf97984c73d95632b17e866de5755f38b304
2020-01-08Fix help string for f2fsDaniel Rosenberg
Help showed the operands in the wrong order. The script does not appear to allow for there to be in different order, so fixing the help message Test: None (could confirm necessary by invoking with flags in other order and seeing that it doesn't see the flags) Change-Id: Ia0a5a41f4743caf03e39df7be53f717a2642b764
2019-11-15mkf2fsuserimg.sh: Make sparse mode optionalAlistair Delva
Bug: 142424832 Bug: 142803849 Test: Run mkf2fsuserimg.sh without the sparse option and check that the generated image is not sparse. Co-authored-by: Satya Tangirala <satyat@google.com> Change-Id: I8a079b30f63ddd13a94d73339501ed8ecb2c5049
2019-03-28Convert more of system/extras to Android.bpDan Willemsen
See build/soong/README.md for more information about Soong. Bug: 122331914 Test: cd system/extras; mma Test: treehugger Change-Id: Ic1cf293df2c848c7476ca93c150106a4a3cd849c
2018-11-21make_f2fs: use -g android by defaultJaegeuk Kim
Bug: 119875846 Change-Id: Iba2c969b46614376a99d882a207489227e7bbfbd Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2018-08-27Clean up the global -Wno- in system/extras.Elliott Hughes
Bug: N/A Test: builds Change-Id: Idde3d0dafba08ffcd12cc9aa3540550e2601a227
2018-08-22Remove Wno-unused-variable from defaults and fix resulting warnings.Sandeep Patil
Bug: 113035007 Test: mmm -j system/extras Change-Id: Id3fa08008b643002baa5f0be0961b36db35e25a9 Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-05-15Merge "Fix a double-free" am: 98d51d994fGeorge Burgess IV
am: 9a533b4b5b Change-Id: I204235abae1d1f23bc87fd1bf803143e16c300bb
2018-05-15Fix a double-freeGeorge Burgess IV
On an error here, we'd free `info->sit_blocks` just above this line, return to `generate_f2fs_info`, jump to the `error` label, and call `free_f2fs_info`. `free_f2fs_info` helpfully frees `info->sit_blocks`. Caught by the static analyzer. Bug: None Test: Static analyzer no longer complains. Change-Id: I52a158b35f19736b0bfd9cccf969f8fca9237928
2018-05-02Merge "Use stdint.h instead" am: a4342e7599Logan Chien
am: 49ccf3ad1b Change-Id: If4ccde236519722d0a7da8a04bc81a17496d1e53
2018-05-02Use stdint.h insteadLogan Chien
This commit replaces `u_int32_t`, `u64`, and `u_int64_t` with `uint32_t` and `uint64_t` defined in C99 <stdint.h>. Test: cd system/extras/f2fs_utils && mma Change-Id: I56fd994d94103b3bc416543fbb6fad8b77c503f4
2018-04-06mkf2fsuserimg.sh: set fsverity feature bitJaegeuk Kim
Bug: 74604441 Bug: 67380979 Change-Id: I64800783437ed28054d0ada8cb6537bc6683b238 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-12-07mkf2fsuserimg.sh: support sload_f2fsJaegeuk Kim
Change-Id: I29619b034d3b0323ae2bda46ac4a0d0595871dec Exempt-From-Owner-Approval: No owner listed Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-11-30mkf2fsuserimg.sh: add missing featuresJaegeuk Kim
This patch adds encryption and quota features. Change-Id: I5a8ef7d2e56d8081bc09529dc28fdceeda4d6301 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-11-17f2fs_utils: enable mac build by removing dead codesJaegeuk Kim
We don't need to compile some dead codes, since we start to use make_f2fs built from external/f2fs-tools directly. Bug: 69298953 Change-Id: If4e3babcf0b3868a3368e89787b251d305719a0f Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-10-03Merge "Use -Werror in system/extras"Chih-hung Hsieh
am: 560b2196d5 Change-Id: Ib27445c71318d6aa11cf99b48aeb180529d7e11a
2017-10-03Merge "Use -Werror in system/extras"Chih-hung Hsieh
2017-10-02Use -Werror in system/extrasChih-Hung Hsieh
* Use system-extras-cflags-defaults * Move -Wall -Werror from cppflags to cflags * fix warning on redefinition of MAX_PATH Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib14b4d8eece767225a6fef639ed190b343678c00
2017-09-29Merge "Remove default libraries"Dan Willemsen
am: 6c6b05c47a Change-Id: I16e9d8a83b44453c625b3a8929f36b93161fba9d
2017-09-28Remove default librariesDan Willemsen
libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on Linux. Test: m host Test: mmma system/extras Change-Id: I190f2f987392cd21275821645361adc19053c907 Exempt-From-Owner-Approval: build system cleanup
2017-06-26Merge "use f2fs upstream host to generate image" am: 6a9444152f am: 7c17f07be9Jin Qian
am: 0d864d3704 Change-Id: I77e49ee0558a31f2bdc314faa628231a8f95e870
2017-06-26use f2fs upstream host to generate imageYang Jin
calls make_f2fs -S <size> <filename> Test: ./mkf2fsuserimg.sh ~/android/userdata.img 2000000000 Bug: 62493641 Change-Id: I4d3631a631fbdfbfc680eeba5f2a1dde204cba25 Merged-In: I4d3631a631fbdfbfc680eeba5f2a1dde204cba25
2017-06-05f2fs: adjust change for f2fs-tools v1.8.0Jaegeuk Kim
Change-Id: I41364cbb0781fa5e30567ce7713ef3a2548fa261 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-05-09libf2fs_sparseblock: Android.mk->Android.bpJayant Chowdhary
Test: mm -j64 Bug: 37567578 Change-Id: I9a92406bfc150d9effae89a93b1ee07f7ad6d001
2017-05-05f2fs_utils: update f2fs utils to match 1.8.0Jin Qian
Expose f2fs_configuration via dlsym and use first device for output. Test: format userdata to f2fs and boot Bug: 37758867 Change-Id: Iee011f551f192f643f7b6443b37f65d354491f20
2017-01-24Convert several libraries to soong.Alex Deymo
This patch coverts libfec and its dependencies to soong. This also updates the name of the libext2_uuid-host library removing the "-host" suffix as that is also being converted to soong. Also create a shared library for libfec given that it has quite a few dependencies. Bug: 34284069 Test: mmma system/extras; make checkbuild Change-Id: Ib3ada6420bae32418a02ca92db664d0d24214e2f
2017-01-11Remove "_host" and "_static" suffix from libsparse.Alex Deymo
Bug: 34220783 Change-Id: I33b2ecafaebe46a45c176d5debe821ec1ecaa25b
2016-11-22system/extras: Replace cutils/log.h with android/log.h or log/log.hMark Salyzyn
Test: build success Bug: 26552300 Bug: 31289077 Change-Id: I245c859eae366f817f883e74717bb04050196b4e
2016-10-05Test for _WIN32 in system/extras instead of USE_MINGW.Elliott Hughes
Bug: http://b/23392815 Test: builds Change-Id: Ide007c7ac8414a82548cc99fe384c7de9ba7494b
2016-05-23Fix misc-macro-parentheses warnings in f2fs_utils.Chih-Hung Hsieh
Bug: 28705665 Change-Id: I3341451eb77dd2539d70f3d3fa14f7eca188a63b
2016-02-12Add missing liblog dependencyDimitry Ivanov
Bug: http://b/27171986 Change-Id: Ifef160cce7f64cd95ceb121e1c311e52352174c4
2016-02-02Fix warnings in system/extras.Dan Albert
Bug: http://b/26936282 Change-Id: I1b9c6c9bb06944c32abcb871279d056eea0fb11a
2016-01-08Make f2fs_ioutils depend on libselinuxColin Cross
f2fs_ioutils uses selinux headers, add a dependency on libselinux. Change-Id: I0dd983532c8899ccc6d7f56241e642b5add3f14a
2015-12-09Rename libext2 host libraries to standard suffix.Alex Deymo
libext2_uuid_host was renamed to libext2_uuid-host to match the "-host" suffix used in most libraries. Bug: 24619596 TEST=m Change-Id: Ia417e1e65fa7ee54baac1007c057fe2571bf8196
2015-08-24am 44df7549: Merge "fix bug in mkf2fs tool calculation of f2fs filesystem ↵Mark Salyzyn
length" * commit '44df7549d622456c3f18e371ec57dbf585a68a1b': fix bug in mkf2fs tool calculation of f2fs filesystem length
2015-08-24fix bug in mkf2fs tool calculation of f2fs filesystem lengthlei wang wang