]> granicus.if.org Git - zfs/commitdiff
Add DKIOCTRIM for TRIM support.
authorEtienne Dechamps <e-t172@akegroup.org>
Sat, 1 Sep 2012 13:02:25 +0000 (15:02 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 2 Sep 2012 21:22:01 +0000 (14:22 -0700)
See dechamps/zfs@cc6cd40ad71e1e611591929ad08184516357eaf5 for details.

This harmless addition was merged to simplify testing the ZFS TRIM
support patches.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #167

include/sys/dkio.h

index 0659e9082541ff51d2b412379a716df77e6cffe4..591fbf51d00371639ea49ddd366f467a2e63c5a3 100644 (file)
@@ -33,5 +33,6 @@ struct dk_callback {
 
 #define        DKIOC                   (0x04 << 8)
 #define        DKIOCFLUSHWRITECACHE    (DKIOC | 34)
+#define        DKIOCTRIM               (DKIOC | 35)
 
 #endif /* _SPL_DKIO_H */