[Bug 864051] Re: TRIM support not enabled for SSDs

Mark East 864051 at bugs.launchpad.net
Tue Jul 24 11:28:59 UTC 2012


Looking at the initial commit for TRIM in the kernel I can see that it's
calling ata_id_has_trim() and passing in the disks ID. This looks like
it filters disks that don't support TRIM.

You can see the commit for trim in the 2.6.33 kernel here:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=18f0f97850059303ed73b1f02084f55ca330a80c

If you want to investigate the ata_id_has_trim function more closely you
can find it in include/linux/ata.h.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-target in Ubuntu.
https://bugs.launchpad.net/bugs/864051

Title:
  TRIM support not enabled for SSDs

Status in “partman-target” package in Ubuntu:
  Confirmed

Bug description:
  When creating the fstab, the discard option is not activated for SSDs
  with TRIM support. But for performance reasons, it would be very
  important to be activated.

  1) lsb_release -rd
  Description:	Ubuntu oneiric (development branch)
  Release:	11.10

  2) apt-cache policy partman-target
  N: Unable to locate package partman-target

  3) What you expected to happen
  Partitions on disk devices with TRIM support entered in fstab with the 'discard' mount option

  4) What happened instead
  Partitions on disk devices are always entered without the 'discard' option in fstab

  I hope this is the right package; I found no other package generating
  the fstab.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-target/+bug/864051/+subscriptions




More information about the foundations-bugs mailing list