summaryrefslogtreecommitdiff
path: root/f2fs_utils
AgeCommit message (Collapse)Author
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
2015-05-14am 36a3d0ed: Merge "Remove selinux/android.h from host tools"Jeff Vander Stoep
* commit '36a3d0edf07d74f9036ac1cad5a917d74e2a86ce': Remove selinux/android.h from host tools
2015-05-13Remove selinux/android.h from host toolsJeff Vander Stoep
For tools built for both host and device, only include if not host. Change-Id: Ie102bd7575d2cf5eef3f95e6063c2970d143dac8
2015-04-16am 7f223030: Merge "f2fs_utils: fix build break in static_sdk_tools"Mark Salyzyn
* commit '7f223030ffe1a24600b09f52f17209f42dc0dcc0': f2fs_utils: fix build break in static_sdk_tools
2015-04-16f2fs_utils: fix build break in static_sdk_toolsMark Salyzyn
external/f2fs-tools/mkfs/f2fs_format.c:357: error: undefined reference to dev_read_version clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [out/host/linux-x86/obj/lib/libf2fs_fmt_host_dyn.so] Error 1 Change-Id: I9bf1eec9ee60aa2fc55a3d0793a67d36f271acef
2015-02-20am c11e670a: am 3d5ff951: Merge "Add missing include."Elliott Hughes
* commit 'c11e670a4209b05e1d05646cc81dd67bebd7693b': Add missing include.
2015-02-19Add missing include.Elliott Hughes
...and remove an unused one. Change-Id: I7949964b6d74f861ad07ed56f5092014fdfc7c8a
2015-01-30am 7a0b43b9: am 22669b72: Merge "Add missing includes."Elliott Hughes
* commit '7a0b43b908ed6fd77c22ca4506b7b1d008747bf9': Add missing includes.
2015-01-29Add missing includes.Elliott Hughes
Change-Id: Ie3acca064c1bcecb4e0305e61f01ba8cea4abe03
2014-12-30am dc645aa1: am c8e992de: Merge "Fix missing #includes in system/extras."Elliott Hughes
* commit 'dc645aa1161d070855bd2345b4b62c90353ab00d': Fix missing #includes in system/extras.
2014-12-29Fix missing #includes in system/extras.Elliott Hughes
Change-Id: I78000cea6b2012f571e596ed400b3f04847cb761
2014-08-19f2fs_sparseblock.c: Skip over empty segments, minor clean upDaniel Rosenberg
Change-Id: Iec70cc6b16c84ac610d607a5fea3584b5778275a Signed-off-by: Daniel Rosenberg <drosen@google.com>
2014-08-19f2fs_sparseblock: Fixed handling of journaled sit entriesDaniel Rosenberg
Bug: 15749466 Change-Id: I3f7f13698e88efd7ffeb00c1ba3a070527a3f6a0 Signed-off-by: Daniel Rosenberg <drosen@google.com>
2014-08-18f2fs_sparseblock: Correctly handle f2fs checkpoint flagsDaniel Rosenberg
Bug: 15749466 Change-Id: I31ecefc0cf2ebfba1652a8b87fd70b045624ffa4 Signed-off-by: Daniel Rosenberg <drosen@google.com>
2014-08-15Android.mk: Remove false dependency on host osDaniel Rosenberg
Bug: 15749466 Change-Id: Idca63cf0ddc84462485cdd266d473a32833fed74 Signed-off-by: Daniel Rosenberg <drosen@google.com>
2014-08-15f2fsutils: Added support for sparse f2fs representationsDaniel Rosenberg
Bug: 15749466 Change-Id: I27b386e708e04d449fe460d1f9be553b438c9156 Signed-off-by: Daniel Rosenberg <drosen@google.com>
2014-06-25f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)JP Abgrall
Change-Id: I8f911f2d084aee08f3f53da984d5c3d2a252cb05 Signed-off-by: JP Abgrall <jpa@google.com>
2014-06-24f2fs utils: set correct dependency on dynamic libf2fsJP Abgrall
Don't link against it anymore. Just let dlopen() deal with it correctly. The "config" struct will come from the f2fs_ioutils and libf2fs_fmt_host expects to have it global, so let link with -rdynamic and let dlopen() resolve it. Be more aggressive with linux-only builds. Bug: 15717498 Change-Id: I03ebebed1fc652170b44f809df42c1f8595216eb Signed-off-by: JP Abgrall <jpa@google.com>
2014-06-24f2fs utils: Add mkf2fsuserimg.sh and make_f2fsJP Abgrall
This is used to generate empty userdata.img files. Normally, "fastboot format userdata" should be used. Caveats: - It only builds an empty sparse image. - windows/mac unsupported Change-Id: I5fbd9724fdd3f4513e7c91f123fc5fffcb475012 Signed-off-by: JP Abgrall <jpa@google.com>
2014-06-24f2fs_utils: support new f2fs-tools f2fs_finalize_device API.JP Abgrall
Change-Id: Id5a6a7edc7871a6c0eb452ad7136732b9a730e6a Signed-off-by: JP Abgrall <jpa@google.com>