~ubuntu-branches/ubuntu/vivid/lvm2/vivid

« back to all changes in this revision

Viewing changes to debian/patches/enable-issue-discards.patch

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, https://blueprints.launchpad.net/ubuntu/+spec/core-1311-ssd-trimming
  • Date: 2013-12-13 10:51:54 UTC
  • mfrom: (3.3.1 wheezy)
  • Revision ID: package-import@ubuntu.com-20131213105154-sq6gjjelygjbt15h
Tags: 2.02.98-6ubuntu2
Add enable-issue-discards.patch: Enable "issue_discards" option by default
to trim SSDs when changing PVs. This option has no effect if the kernel or
the drive does not support trimming, so it's safe to enable by default.
[https://blueprints.launchpad.net/ubuntu/+spec/core-1311-ssd-trimming]
(Closes: #717313)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Enable "issue_discards" option by default
 
2
 to trim SSDs when changing PVs. This option has no effect if the kernel or the
 
3
 drive does not support trimming, so it's safe to enable by default.
 
4
 See also https://blueprints.launchpad.net/ubuntu/+spec/core-1311-ssd-trimming
 
5
Author: Martin Pitt <martin.pitt@ubuntu.com>
 
6
Bug-Debian: http://bugs.debian.org/717313
 
7
 
 
8
Index: lvm2-2.02.98/doc/example.conf.in
 
9
===================================================================
 
10
--- lvm2-2.02.98.orig/doc/example.conf.in       2013-12-13 10:43:03.000000000 +0100
 
11
+++ lvm2-2.02.98/doc/example.conf.in    2013-12-13 10:49:09.471664140 +0100
 
12
@@ -196,7 +196,7 @@
 
13
     # to 1, discards will only be issued if both the storage and kernel provide
 
14
     # support.
 
15
     # 1 enables; 0 disables.
 
16
-    issue_discards = 0
 
17
+    issue_discards = 1
 
18
 }
 
19
 
 
20
 # This section allows you to configure the way in which LVM selects