Skip to contentSkip to conversation

fstrim fails on F2FS device

DISCUSSION Brian Chadwick 3 participants 3 messages Jun 28, 2014

lore
Share & tools
lore
#0 lore raw

Hi there

running fstrim on a F2FS partition gives the following output:

fstrim: /home: discard operation not supported.

kernel 3.16.0-rc2

Is this normal?

Cheers

Brian

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft

#1 lore raw

Hi Brian,

Quoted 8 lines

-----Original Message-----
From: Brian Chadwick [mailto:[email protected]]
Sent: Saturday, June 28, 2014 2:44 PM
To: [email protected]
Subject: [f2fs-dev] fstrim fails on F2FS device

Hi there

Quoted 7 lines

running fstrim on a F2FS partition gives the following output:

fstrim: /home: discard operation not supported.

kernel 3.16.0-rc2

Is this normal?

Now f2fs has not yet supported batch mode discard through ioctl as the way fstrim used.

Still you could use real-time mode discard by adding a '-o discard' option when mount, meanwhile /sys/fs/f2fs/<devname>/max_small_discards could be used for controlling the real-time mode.

Thanks
Yu

Quoted 5 lines

Cheers

Brian

Quoted 10 lines

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft

#2 lore raw

Exactly, it's correct.
Thanks Chao, :)

Quoted 55 lines · Chao Yu

Hi Brian,

Quoted 8 lines

-----Original Message-----
From: Brian Chadwick [mailto:[email protected]]
Sent: Saturday, June 28, 2014 2:44 PM
To: [email protected]
Subject: [f2fs-dev] fstrim fails on F2FS device

Hi there

Quoted 7 lines

running fstrim on a F2FS partition gives the following output:

fstrim: /home: discard operation not supported.

kernel 3.16.0-rc2

Is this normal?

Now f2fs has not yet supported batch mode discard through ioctl as the way fstrim used.

Still you could use real-time mode discard by adding a '-o discard' option when mount, meanwhile /sys/fs/f2fs/<devname>/max_small_discards could be used for controlling the real-time mode.

Thanks
Yu

Quoted 5 lines

Cheers

Brian

Quoted 10 lines

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Signature · 8 lines
Jaegeuk Kim

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft