TRIM patches

Tim Bisson bissont at mac.com
Sat Jul 23 18:47:10 PDT 2011


Hi,

Here are the trim patches. I tried to break them up into functional units so that a review will hopefully be easier.

I also added support for fdisk, so you can trim a whole device with -I, or just a partition using -u.

The dependencies are pretty simple:
* everything depends on 1
* 7 depends on 5

Tim

----------

1. trim_dev_support_1.diff
	* enables device support for trim (scsi_da, ahci, cam, new ioctl, sysctl)

2. hammer_2.diff
	* enables trimming device/slice before creating new fs on it

3. rc_order_swap_3.diff
	* makes swapon start just after savecore

4.  swap_support_4.diff
	* enables trimming of swap slice before it is turned on

5. online_trim_mount_option_5.diff
	* create new mount option -o trim 

6. ufs_support_6.diff
	* enables trimming device/slice before create new fs on it 

7. online_ufs_7.diff
	* enables online trimming of UFS file system.

8 fdisk_8.diff
	* provides trimming support with fdisk (-I or -u)


Attachment:
hammer_2.diff
Description: Binary data
Attachment:
online_trim_mount_option_5.diff
Description: Binary data
Attachment:
online_ufs_7.diff
Description: Binary data
Attachment:
rc_order_swap_3.diff
Description: Binary data
Attachment:
swap_support_4.diff
Description: Binary data
Attachment:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00008.bin
Type: application/octet-stream
Size: 3992 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0152.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00007.bin
Type: application/octet-stream
Size: 7202 bytes
Desc: "fdisk_8.diff"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0153.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00006.bin
Type: application/octet-stream
Size: 19387 bytes
Desc: "Attachment:"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0154.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00005.bin
Type: application/octet-stream
Size: 5611 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0155.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00004.bin
Type: application/octet-stream
Size: 469 bytes
Desc: "ufs_support_6.diff"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0156.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00003.bin
Type: application/octet-stream
Size: 5634 bytes
Desc: "Attachment:"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0157.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00002.bin
Type: application/octet-stream
Size: 2986 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0158.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00001.bin
Type: application/octet-stream
Size: 4829 bytes
Desc: "trim_dev_support_1.diff"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20110723/7aed94af/attachment-0159.bin>


More information about the Kernel mailing list