f2fs-tools: discard is default but not set in config
PATCH 1/1 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 <[email protected]>
--- lib/libf2fs.c | 1 + mkfs/f2fs_format.c | 1 + 2 files changed, 2 insertions(+)
lib/libf2fs.c +1 -0
@@ -364,6 +364,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)
mkfs/f2fs_format.c +1 -0
@@ -917,6 +917,7 @@ int f2fs_trim_device()return -1 ; } +MSG (0 ,"Info: Discarding device\n" );if (S_ISREG (stat_buf.st_mode))return 0 ;else if (S_ISBLK (stat_buf.st_mode)) {
Signature · 9 lines
1.7.9.5 ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk