fsck, lib: support inline xattr

This patch adjusts the modification to handle inline xattrs.

Change-Id: Ie6043192100491d0ffc821df40b998d7aa6691ac
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@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

Change-Id: I26e114e0697a91d068c0180194c61ad48b97a961
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fsck: skip to check block addresses in device files

The device files use i_addr or i_nid fields for their rdev numbers.
So, fsck should skip to check block addresses inside of them.

Change-Id: I85a344e5e7d801ca846ff96f69a59c7e36dd2d60
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fsck: fix to handle file types correctly

The file type is based on the number, not bit operations.

Change-Id: I173d43a24fdc30313038fd4e157084b150d24241
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
libf2fs: avoid warning of implicit declaration

This patch adds extern declaration.

Change-Id: Ic1474e7e89c57c62040ff99d46572961cf3e95e3
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fsck: fix checking orphan inodes

This patch fixes bugs in the orphan inode procedure.

Change-Id: If28f5080279521e2e9d805aaae46a25219c701ba
Signed-off-by: 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.

Change-Id: Iaba8a41e27b25bac33abbe9d87cd99202ab44992
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>