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

package info (click to toggle)
cinder 2%3A27.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 44,032 kB
  • sloc: python: 496,072; pascal: 2,230; sh: 394; makefile: 104; xml: 26
file content (17 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (3)
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
@@ -44,6 +44,7 @@
                     write-cache %(write_cache)s
                     scsi_sn %(scsi_sn)s
                     scsi_id %(scsi_id)s
+                    params thin_provisioning=1
                 </target>
                   """)