platform/upstream/f2fs-tools.git
11 years agotouch up autotools
Mike Frysinger [Mon, 29 Oct 2012 22:38:59 +0000 (07:38 +0900)]
touch up autotools

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoignore generated files
Mike Frysinger [Mon, 29 Oct 2012 22:36:26 +0000 (07:36 +0900)]
ignore generated files

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agouse proper priu64 type to be portable
Mike Frysinger [Mon, 29 Oct 2012 22:38:30 +0000 (07:38 +0900)]
use proper priu64 type to be portable

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoCleanup: add comments
Jaegeuk Kim [Mon, 29 Oct 2012 22:35:49 +0000 (07:35 +0900)]
Cleanup: add comments

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
11 years agoEnhancement: shorten umount time
Jaegeuk Kim [Mon, 29 Oct 2012 22:35:21 +0000 (07:35 +0900)]
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>
11 years agoEnhancement: add uuid
Jaegeuk Kim [Mon, 29 Oct 2012 22:35:00 +0000 (07:35 +0900)]
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>
11 years agoEnhancement: add i_atime and i_generation
Jaegeuk Kim [Mon, 29 Oct 2012 22:34:35 +0000 (07:34 +0900)]
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>
11 years agomkfs: Initial commit for patch v2 series
Jaegeuk Kim [Fri, 26 Oct 2012 12:56:34 +0000 (21:56 +0900)]
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>