• Home
  • History
  • Annotate
  • only in /external/f2fs-tools/tools/
History log of /external/f2fs-tools/tools/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a16ec08f3e715c0b4f7cf9c0377e6f18173d410d 04-Mar-2015 Michael Lass <bevan@bi-co.net> f2fstat: fix option parsing

On systems using unsigned char as default (char)EOF != EOF.
Use int to store returned value of getopt to make it work on all platforms.

Signed-off-by: Michael Lass <bevan@bi-co.net>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2fstat.c
3f4bcefe561da90a2639436dc66a8e6e783ea040 22-Jan-2015 Chao Yu <chao2.yu@samsung.com> fibmap.f2fs: fix the wrong stat info

fibmap shows ino, size, blocks with incorrectly decimal number, fix it.

Before:
--------------------------------------------
dev [8:16]
ino [0x 238ea : 0]
mode [0x 81a4 : 33188]
nlink [0x 1 : 1]
uid [0x 0 : 0]
gid [0x 0 : 0]
size [0x 79e00 : 0]
blksize [0x 1000 : 4096]
blocks [0x 268 : 0]
--------------------------------------------

Patched:
--------------------------------------------
dev [8:16]
ino [0x 238ea : 145642]
mode [0x 81a4 : 33188]
nlink [0x 1 : 1]
uid [0x 0 : 0]
gid [0x 0 : 0]
size [0x 79e00 : 499200]
blksize [0x 1000 : 4096]
blocks [0x 268 : 616]
--------------------------------------------

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
ibmap.c
744352418daf27a99d73649d8d22b315ceafcd34 20-Dec-2014 Jaegeuk Kim <jaegeuk@motorola.com> parse.f2fs: add a tool to parse IO traces made by runtime f2fs

This patch adds parse.f2fs to retrieve process information and an amount
of data reads and writes from given IO trace got by f2fs.

Signed-off-by: Jaegeuk Kim <jaegeuk@motorola.com>
akefile.am
2fs_io_parse.c
d83693c3de5497a09d66d7a1ea3a62dab7c7c452 18-Sep-2014 Jaegeuk Kim <jaegeuk@kernel.org> f2fstat: enhance readability of output

This patch enhances output readability of f2fstat.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2fstat.c
f2a99037496d7139d61c0170f620ee891e2892c8 20-May-2014 Jaegeuk Kim <jaegeuk@kernel.org> fibmap: need linux/fs.h for FIBMAP

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
ibmap.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>
ibmap.c
379ff8916e8b3fd19bca44265b70e50584be2c31 03-Mar-2014 Natanael Copa <ncopa@alpinelinux.org> fibmap.f2fs: compile fix for musl libc

Include sys/types.h for major/minor macros.

This fixes the following compile error with musl libc:
fibmap.o: In function `print_stat':
/home/ncopa/src/f2fs-tools/tools/fibmap.c:34: undefined reference to `minor'
/home/ncopa/src/f2fs-tools/tools/fibmap.c:34: undefined reference to `major'
fibmap.o: In function `stat_bdev':
/home/ncopa/src/f2fs-tools/tools/fibmap.c:54: undefined reference to `minor'
/home/ncopa/src/f2fs-tools/tools/fibmap.c:54: undefined reference to `major'
collect2: error: ld returned 1 exit status

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
ibmap.c
c15df2285d1e6b7cee8bd9fd23007ab23db16d82 13-Feb-2014 Changman Lee <cm224.lee@samsung.com> f2fstat: add nat caches and free nids

This patch shows nat caches and free nids using f2fs.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2fstat.c
b7906af37f1de9d4dfc47c55fa4578d204f5ea3f 13-Feb-2014 Changman Lee <cm224.lee@samsung.com> f2fstat: show cp count calling f2fs

This patch is to inform how many checkpoint is called.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2fstat.c
4ff7400c519a8f644b8181756939fcb313345c12 06-Feb-2014 Changman Lee <cm224.lee@samsung.com> f2fstat: add memory information used by f2fs

This patch adds memory information used by f2fs.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2fstat.c
28d45d09cd138420449d63c479755339a7b33050 29-Jan-2014 Changman Lee <cm224.lee@samsung.com> f2fstat: add option to select partition to see status

If there are some partitions, this may select a partition to see its
status. If no selection, you will see first section of status.

e.g.) f2fstat -p /dev/sda3

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2fstat.c
b611e1155a67be8220ceefc36d8ab5abae926d19 15-Jan-2014 Changman Lee <cm224.lee@samsung.com> fibmap.f2fs: add bdev information

This patch shows devname and start_lba based on zero sector.
fibmap reports related lba, sometimes we want to know absolute lba of
file to compare with blktrace.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
ibmap.c
e296161af0a2429f36b155a1ab75095f6e0a81f9 15-Jan-2014 Changman Lee <cm224.lee@samsung.com> f2fs-tools: move fsck/fibmap.f2fs to tools/

Let's move miscellaneous utilities into tools directory.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
akefile.am
ibmap.c
a0a5567e3e2bdf81b71c7e8c6f801f8d55dcbb6e 10-Jan-2014 Changman Lee <cm224.lee@samsung.com> f2fs-tools: add f2fstat to print f2fs's status in sec

This tool prints /sys/kernel/debug/f2fs/status in sec so that we
can monitor variation of f2fs status.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
akefile.am
2fstat.c