fdisk, gpt - Support trim on recent kernels
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Aug 2018 21:38:34 +0000 (14:38 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Aug 2018 21:46:21 +0000 (14:46 -0700)
commitd9306807fd00040e0598140bd4c634685f805510
tree8a6c51a0b0109c8f8f1838ddd120dad8ab671242
parentef1307349618bb66c4a1722a8c62cb2c5789a45c
fdisk, gpt - Support trim on recent kernels

* Recent kernels removed the 'trim' sysctls.  Devices now allow trim by
  default.

* Fix the fdisk -E option to no longer try to use the sysctls.

* Add trim support to gpt init (-E).

* Fix swapon -e, change option to -E to match gpt and fdisk
  (-e still supported and does the same thing).
sbin/fdisk/fdisk.c
sbin/gpt/create.c
sbin/gpt/gpt.8
sbin/swapon/swapon.8
sbin/swapon/swapon.c
sys/bus/cam/scsi/scsi_da.c