f2fs develop log

About F2FS

Format F2FS

thomas@ptldev:~$ sudo mkfs.f2fs /dev/sdb1

F2FS-tools: mkfs.f2fs Ver: 1.2.0 (2013-10-25)

Info: sector size = 512
Info: total sectors = 570308608 (in 512bytes)
Info: zone aligned segment0 blkaddr: 256
Info: Discarding device
Info: This device doesn't support TRIM
Info: format successful

mount F2FS

thomas@ptldev:~/source/f2fs-dev$ sudo modprobe f2fs thomas@ptldev:~/source/f2fs-dev$ sudo mount /dev/sdb1 /mnt/ thomas@ptldev:~/source/f2fs-dev$ ls /mnt/

current tools for f2fs

thomas@ptldev:~$ dpkg -L f2fs-tools /. /sbin /sbin/mkfs.f2fs /sbin/fsck.f2fs /sbin/fibmap.f2fs /usr /usr/lib /usr/lib/i386-linux-gnu /usr/lib/i386-linux-gnu/libf2fs.a /usr/lib/i386-linux-gnu/libf2fs.so.0.0.0 /usr/share /usr/share/doc /usr/share/doc/f2fs-tools /usr/share/doc/f2fs-tools/changelog.Debian.gz /usr/share/doc/f2fs-tools/changelog.gz /usr/share/doc/f2fs-tools/copyright /usr/share/man /usr/share/man/man8 /usr/share/man/man8/mkfs.f2fs.8.gz /sbin/dump.f2fs /usr/lib/i386-linux-gnu/libf2fs.so /usr/lib/i386-linux-gnu/libf2fs.so.0

fsck.f2fs

sudo /sbin/fsck.f2fs /dev/sdb1 Info: sector size = 512 Info: total sectors = 570308608 (in 512bytes) [f2fs_crc_valid: 351] CRC validation failed: cal_crc = 4076150800 blk_crc = 0 buff_size = 0x0 NID[0xc6d720] is unreachable NID[0xc6d721] is unreachable NID[0xc6d722] is unreachable NID[0xc6d723] is unreachable NID[0xc6d724] is unreachable .... NID[0xc70e36] is unreachable NID[0xc70e37] is unreachable NID[0xc70e38] is unreachable [FSCK] Unreachable nat entries [Fail] [0x22b4] [FSCK] SIT valid block bitmap checking [Ok..] [FSCK] Hard link checking for regular file [Ok..] [0x0] [FSCK] valid_block_count matching with CP [Ok..] [0x2] [FSCK] valid_node_count matcing with CP (de lookup) [Ok..] [0x1] [FSCK] valid_node_count matcing with CP (nat lookup) [Fail] [0x22b5] [FSCK] valid_inode_count matched with CP [Ok..] [0x1]

dump.f2fs

thomas@ptldev:~$ sudo dump.f2fs /dev/sdb1 Info: sector size = 512 Info: total sectors = 570308608 (in 512bytes) [print_node_info: 77] Node ID [0x3:3] is inode i_mode [0x 41ed : 16877] i_uid [0x 0 : 0] i_gid [0x 0 : 0] i_links [0x 3 : 3] i_size [0x 1000 : 4096] i_blocks [0x 2 : 2] i_atime [0x52e21d9d : 1390550429] i_atime_nsec [0x 0 : 0] i_ctime [0x52e21e6f : 1390550639] i_ctime_nsec [0x 3adec0a : 61729802] i_mtime [0x52e21e6f : 1390550639] i_mtime_nsec [0x 3adec0a : 61729802] i_generation [0x 0 : 0] i_current_depth [0x 1 : 1] i_xattr_nid [0x 0 : 0] i_flags [0x 0 : 0] i_pino [0x 0 : 0] i_ext: fofs:0 blkaddr:43fbf02 len:1 i_addr[0] [0x 43fbf02 : 71286530] i_addr[1] [0x 0 : 0] i_addr[2] [0x 0 : 0] i_addr[3] [0x 0 : 0] i_nid[0] [0x 0 : 0] i_nid[1] [0x 0 : 0] i_nid[2] [0x 0 : 0] i_nid[3] [0x 0 : 0] i_nid[4] [0x 0 : 0]

compile source

git clone git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git cd f2fs-tools autoreconf --install ./configure make

Comments