File: add-params-thin_provisioning-equal-one.patch

package info (click to toggle)
cinder 2%3A26.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 43,532 kB
  • sloc: python: 490,880; pascal: 2,230; sh: 394; makefile: 96; xml: 26
file content (17 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Add "params thin_provisioning=1" in tgt export
 Add 'params thin_provisioning=1' in iscsi volume export
 to allow fstrim to work with the lvm backend.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: https://review.opendev.org/c/openstack/cinder/+/900513
Last-Update: 2023-12-04

--- cinder-23.0.0.orig/cinder/volume/targets/tgt.py
+++ cinder-23.0.0/cinder/volume/targets/tgt.py
@@ -42,6 +42,7 @@ class TgtAdm(iscsi.ISCSITarget):
                     %(chap_auth)s
                     %(target_flags)s
                     write-cache %(write_cache)s
+                    params thin_provisioning=1
                 </target>
                   """)