aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChangman Lee <cm224.lee@samsung.com>2013-08-31 08:41:31 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-09-03 09:45:44 +0900
commitb155ea8e18a2de5a5d09d3c969cc6fd79a04cb1d (patch)
tree8fe0fb9f6548f0cabaadbfd1b287df8449d25abd /lib
parentcd1e4704d0cbf1cbb49b3f33c576566b4b1e296e (diff)
downloadandroid_external_f2fs-tools-b155ea8e18a2de5a5d09d3c969cc6fd79a04cb1d.tar.gz
android_external_f2fs-tools-b155ea8e18a2de5a5d09d3c969cc6fd79a04cb1d.tar.bz2
android_external_f2fs-tools-b155ea8e18a2de5a5d09d3c969cc6fd79a04cb1d.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libf2fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index 988c854..3984697 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -371,6 +371,7 @@ void f2fs_init_configuration(struct f2fs_configuration *c)
c->heap = 1;
c->vol_label = "";
c->device_name = NULL;
+ c->trim = 1;
}
static int is_mounted(const char *mpt, const char *device)