7ee48ff62736696b7277559f30459a80ce3c41a7 |
|
30-Jul-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
mkfs.f2fs: remove build warning Should be unsigned int for le32_to_cpu. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/mkfs/f2fs_format.c
|
2794728f818c72541be052d1b54559d79d8a3aa7 |
|
10-Jul-2014 |
Changman Lee <cm224.lee@samsung.com> |
mkfs.f2fs: large volume support This patch supports large volume over about 3TB. Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
/external/f2fs-tools/mkfs/f2fs_format.c
|
c5786963aef93bb7747cb04454e1041738b3255f |
|
13-Jun-2014 |
Jaegeuk Kim <jaegeuk@kernel.org> |
libf2fs, fsck, mkfs: call f2fs_finalize_device before exit The fsck tool should call f2fs_finalize_device before exit to close the device file. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Change-Id: I145413c94339d8941e4d7da8545ca017e76c61f2
/external/f2fs-tools/mkfs/f2fs_format.c
|
6d7fd1311b82025646fbe6581fdef2583be33455 |
|
09-May-2014 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
f2fs: fix to remove the test code that should not be merged Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
0fbdf6cbd4dfc633454eba2f841c123789e297ad |
|
06-Apr-2014 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
f2fs-tools: announce dual licenses with GPL and LGPL v2 This patch announces LGPL v2 for the following files. - include/f2fs_fs.h - lib/libf2fs.c - lib/libf2fs_io.c - mkfs/f2fs_format.c - mkfs/f2fs_format_main.c - mkfs/f2fs_format_utils.c - mkfs/f2fs_format_utils.h Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
3c85e737308ef95629b232745d6a8d141d87cc9a |
|
14-May-2014 |
JP Abgrall <jpa@google.com> |
Cleanup various build warnings (signed vs unsigned, unused vars,...) * removed unused includes. * removed unused parameters. * Fixed a bunch of warnings around: int i; if (i < some_uint) ... and u32 x; ... if (x < 0) return error; * Protect BLKDISCARD usage if it is not available. Change-Id: Iede035b1beb2df01c961589a69aff47a5258ecd2 Signed-off-by: JP Abgrall <jpa@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
a35529fce0c5171562ec0ebebcc6120d1604924b |
|
01-Apr-2014 |
JP Abgrall <jpa@google.com> |
format: add support for dev_fill() and extra dev_*() debugging. Support an fs_io dev_fill(). This helps with devices that actually already return 0 on uninitialized data. It also helps with in memory devices using sparse libs: don't allocate a block of 0s. Signed-off-by: JP Abgrall <jpa@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
af3c6803bd3db784531ff5675c539eef4bae1a15 |
|
06-Feb-2014 |
JP Abgrall <jpa@google.com> |
split up mkfs format into main and just the format code. This will allow using the format code as a library. Signed-off-by: JP Abgrall <jpa@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
2f229b89a7756be7df9f36f232b7b0901c1c6e53 |
|
26-Mar-2014 |
Dongho Sim <dh.sim@samsung.com> |
mkfs: fix wrong extension count fix an bug related to extension list. there was the potential bug in set_cold_files function, namei.c. Signed-off-by: Dongho Sim <dh.sim@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
99250ec1aa15ea329fb090fd8f4c1e7e7b50bba3 |
|
27-Feb-2014 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs: support large directory This patch synchronizes mkfs with the latest f2fs configuration in which supports large directory by assigning dir_level. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
858c4039c85f7c00c57925902985701b1e083555 |
|
05-Feb-2014 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs, fsck: change the results for readability This patch cleans up several printing formats. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
0255d52ebf3ce596804d6a631c61e6039b2bf271 |
|
28-Jan-2014 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs: fix the wrong nat bitmap size We should consider checksum bytes in the checkpoint block. Previously, this bug incured very critical panics for node entry handling. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
4f267323a28c3fb50fa08256517e2dae4e347b2d |
|
20-Jan-2014 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
f2fs-tools: resolve build warnings Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
6da30100ee0f64687c5e1bc84bf86f0e312261d9 |
|
10-Jan-2014 |
JP Abgrall <jpa@google.com> |
mkfs: write the cp page 2 of the checkpoint pack 2 during format Currently mkfs followed by fsck will fail with [f2fs_crc_valid: 351] CRC validation failed: cal_crc = 4076150800 blk_crc = 0 buff_size = 0x0 This is because the validatie_checkpoint() tries to read and checksum the cp page 2, and it is invoked on both cp packs. But format only writes the page 1 of the 2nd checkpoint pack. Signed-off-by: JP Abgrall <jpa@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
437dbf67730d2765c4dfc8539b07258e1ca3966f |
|
11-Jan-2014 |
JP Abgrall <jpa@google.com> |
mkfs: completely abstract the dev IO during format This change allows for f2fs_format to work on a non-standard device (e.g. sparse-memory backed file). Removes direct access to config.fd from within f2fs_format.c. Now, f2fs_format_device() can be made to work against any device by providing f2fs_finalize_device() f2fs_trim_device() and the lib2fs.c functions ASCIIToUNICODE dev_write f2fs_cal_crc32 f2fs_set_bit log_base_2 This will allow Android's fastboot to use f2fs against a libsparse. Signed-off-by: JP Abgrall <jpa@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
ffbada4298c7aed059bb99a8d553d6dd555963c0 |
|
11-Nov-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs: remove stale node blocks If the device does not support discard, we should write zero blocks to avoid roll-forward recovery. Reported-and-tested-by: Huajun Li <huajun.li@intel.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
2ad1fcd800747851a1db9a84acc87086c621f54d |
|
17-Oct-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs: add two file extensions for android This patch adds two file extensions, jpeg and video, to identify cold files in android systems. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
b155ea8e18a2de5a5d09d3c969cc6fd79a04cb1d |
|
31-Aug-2013 |
Changman Lee <cm224.lee@samsung.com> |
f2fs-tools: discard is default but not set in config flash devices support discard therefore discard is default but not set in config Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
2c877a862d6d22ff5324e90b726c7d6a26febfb7 |
|
02-Aug-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
libf2fs: check more conditions on mounted filesystem In the case of lazy umount, "umount -l", some processes are able to use the file system even if its mountpoint was disconnected. At this moment, we should not allow mkfs.f2fs. This patch adds this condition check. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
679ca83b9e1a0ca36da9de0919e91377055bd9a9 |
|
16-Jul-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs: add apk extension to indicate cold files Android systems uses apks for their application packages. These files are normally used as read-only. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
716ea385bee0afe55ca7b18d49ed23df473288ef |
|
28-Jun-2013 |
Wang Sheng-Hui <shhuiw@gmail.com> |
mkfs: fix the total_zones calculation in f2fs_prepare_super_block We can count the main area as the data zones. Remove the '-1' miscalcuation. Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
c5bf205a4d7a4e8efad80849bf016e4299935734 |
|
19-Jun-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs: fix to store __le32 for checkpoint flags The checkpoint flags also should be stored as little endian style. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
cc9d9caeb6853d38297d97d3dd4731c452418f02 |
|
19-Jun-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
lib, mkfs: fix endian conversion for crc calculation Let's store the crc value for the checkpoint blocks with __le32. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
b6ae58ed44827fb10f04227d5b1b79d68228f994 |
|
13-Jun-2013 |
Oded Gabbay <ogabbay@advaoptical.com> |
mkfs: fix bug in endianness at f2fs_update_nat_root This patch fixes a bug in the function "f2fs_update_nat_root", where the access to the array "nat_blk->entries" was done using an index without encapsulation of the "le32_to_cpu" macro. The bug happens when trying to format an SD card in a powerpc architecture, which natively runs at big-endian mode Signed-off-by: Oded Gabbay <ogabbay@advaoptical.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
fef98ebdf3a7728017cb3d0ae4ffedc5405e531d |
|
03-Apr-2013 |
Changman Lee <cm224.lee@samsung.com> |
mkfs: add option to disable trim at format This patch adds an option to disable trim command at format. Default operation sends trim command to device. Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
9799d6364dc93e1fd259d812d4a50ed984a6456b |
|
03-Apr-2013 |
Mike Fleetwood <mike.fleetwood@googlemail.com> |
mkfs: handle labels longer than 16 characters Mkfs copies labels up to 512 characters into a the 16 character buffer config.vol_label corrupting memory afterwards and causing a core dump. # mkfs.f2fs -l aaaaaaaaaabbbbbbbbbbcccccccccc /dev/sda12 F2FS-tools: mkfs.f2fs Ver: 1.1.0 (2013-03-08) Info: Label = aaaaaaaaaabbbbbbbbbbcccccccccc Info: sector size = 512 Info: total sectors = 2097152 (in 512bytes) Info: zone aligned segment0 blkaddr: 256 Segmentation fault (core dumped) Make config.vol_label a pointer to the label in argv, rather than copying it into a too small buffer. Signed-off-by: Mike Fleetwood <mike.fleetwood@googlemail.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
5043dffbd1d2b89c71966dde31780b0ca313b5c9 |
|
12-Feb-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
build: clean up the base functions Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
e69e4378500b836863dfb7f6e88e39935f23ae80 |
|
25-Jan-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
build: make several base functions as a library Let's make a library and relocate functions for other tools like fsck.f2fs. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
40b9f96587c191269a41b20bd2bd5000fc9db259 |
|
25-Jan-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
build: move f2fs_format.h to ../include/f2fs_fs.h This is to use f2fs.h globally, which will be used by other tools such as fsck.f2fs. Siged-mff-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
d2387723a8f47a3c860d2c67436232ccad764caf |
|
14-Jan-2013 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
mkfs: reserve x2 sections This is due to GC on data sections. When a data section is cleaned, it produces maximum same number of dirty node blocks additionally. So, we should reserve x2 sections to flush dirty node blocks safely. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
07b815d39509135e35856cfd30b83930a0af8250 |
|
12-Dec-2012 |
Ezequiel Garcia <ezequiel@free-electrons.com> |
mkfs: Make HDIO_GETGEO ioctl optional Some block devices don't implement HDIO_GETGEP ioctl; loop device being a notable example. Without this patch, it's not possible to make a f2fs on a file mounted over a loop device. Signed-off-by: Ezequiel Garcia <ezequiel@free-electrons.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
dd1ba078fae270c4174a221a873026fea85aae32 |
|
07-Dec-2012 |
Sven-Göran Bergh <sgb@systemasis.org> |
Unify version and date management Patch 1: Now we have two different versions that produce different superblocks/ filesystems with the same version info. Major/minor version in the sb should reflect the version of the tool creating the filesystem. This patch will ensure that the version entered in the file VERSION will be used consistently throughout the code. Patch 2: In order to simplify the maintenance with a new release the date in F2FS_TOOLS_DATE is now take from the last commit in git. Thus, git is needed to run autoconf. However, git is not needed for the simple build procedure, ./configure && make, that should be the only things needed to build the tool from a tar.gz package. Pros & Cons: [+] Automated [+] True [-] Git needed to run autoreconf Change log by Jaegeuk from the initial patch-set: - Merge two patches into one : Eliminate the intermediate state having version.h and VERSION. - Remove the Git dependency which is one of Cons : If there is no git tree, just use DATE described in VERSION. - Minor coding style Pros & Cons: [+] Automated [+] True [+] No Git dependency Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
8bdf26205db63dad57fb477620bf6456d4613ae2 |
|
26-Nov-2012 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Add version information Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
c6ff6d09de5fdacbab7c31e861238397d3bd788e |
|
13-Nov-2012 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Bug fix: Fix overflow when calculating block address This patch fixes the bug as follows. "I'm trying to roll out f2fs on top of SDHC card and faced with following issue - after mounting card I cannot read device root entry. It returns -1 EINVAL (entry too big). getdents(3, /* 1 entries */, 32768) = 24 getdents(3, 0x1082c88, 32768) = -1 EINVAL (Invalid argument)" reported by Ruslan N. Marchenko [me@ruff.mobi]. This bug is easily reproducible and I couldn't have checked the mount entry cautiously. Due to the bug, f2fs couldn't get default dentries, . and .., in the root directory. In the case of other newly created directories, that's fine. The problem was the overflow during casting variables while calculating the block address of the root dentry block. In order to avoid that, I simply split the equation under consideration of the casting issue. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
bbf6e62360d8eae415dc7d19325b7d70079db0e1 |
|
31-Oct-2012 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Cleanup: sync comments to kernel source Remove unnecessary data fields too. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
4ed75df3792dc700fd7f38eefcae61e05c5b12b4 |
|
30-Oct-2012 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Bug fix: store superblocks with correct offset There are two superblock writes in mkfs.f2fs. offset: 0 1024 4095 5119 8191 |------> 1'st superblock ----|--------> 2'nd superblock ----| Therefore, each superblocks has 1024 byte-size offset. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
3dd5f8b400a27c2a14945a1c09d5585aee3e4dd8 |
|
29-Oct-2012 |
Mike Frysinger <vapier@gentoo.org> |
use proper priu64 type to be portable Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/f2fs-tools/mkfs/f2fs_format.c
|
22a75edd47adea7d466ecd245c62b75fd1866628 |
|
29-Oct-2012 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Enhancement: shorten umount time When f2fs is unmounted cleanly, it stores active summmary blocks of nodes in the checkpoint pack in order to avoid reconstruct all of them at the later mount time. Previously, mkfs didn't prepare that, which is why the initial mount time is so huge. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
99b74393403aab847587d6c37cd1aaf1d935a81d |
|
29-Oct-2012 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Enhancement: add uuid "Usually, it is used 128-bits UUID for serial number. Why do you use __le32 as volume_serial_number?" >From Vyacheslav Dubeyko. I added an uuid facility for the serial number. And sync with kernel/include/linux/f2fs_fs.h. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
b5af7953f81018c9edd844bd1bc9f4f6752a756a |
|
29-Oct-2012 |
Jaegeuk Kim <jaegeuk.kim@samsung.com> |
Enhancement: add i_atime and i_generation "You appear to have dropped i_btime - no big deal, you weren't using it anyway. However if you ever want to support NFS export you will need some value which is assigned when the inode is allocated and never changed until it is de-allocated. This is used to detect when an NFS file-handle refers to a previous incarnation of an inode and so should be rejected as STALE. i_btime could have possibly provided this, but not any more. You might want to add something back. ext3 uses "i_generation" and has an 's_next_generation' in the superblock to ensure that each new inode gets a new generation number. You've also dropped i_atime. I can certainly understand the desire to do that, but I wonder if it is entirely wise. There are some use-cases where i_mtime is a poor substitute. Also 'current_depth' looks a little odd without a 'i_' prefix. It wouldn't hurt to have a comment noting that it is for directories." >From Neil Brown. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|
036d45e551ca5405c726f8ccb51f446620cd4af4 |
|
26-Oct-2012 |
Jaegeuk Kim <jaegeuk.kim@gmail.com> |
mkfs: Initial commit for patch v2 series This is same as f2fs-tools-1.1.0.tar.gz, and for patch v2 in kernel. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@gmail.com>
/external/f2fs-tools/mkfs/f2fs_format.c
|