git: fdisk, gpt - Support trim on recent kernels

Tomohiro Kusumi kusumi.tomohiro at gmail.com
Wed Aug 1 16:05:54 PDT 2018


Matthew Dillon <dillon at crater.dragonflybsd.org>:
>
>
> commit d9306807fd00040e0598140bd4c634685f805510
> Author: Matthew Dillon <dillon at apollo.backplane.com>
> Date:   Wed Aug 1 14:38:34 2018 -0700
>
>     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).

HAMMER1 and UFS also check this sysctl on newfs.

>
> Summary of changes:
>  sbin/fdisk/fdisk.c         |  9 ++++++---
>  sbin/gpt/create.c          | 45 +++++++++++++++++++++++++++++++++++++++++----
>  sbin/gpt/gpt.8             |  9 ++++++++-
>  sbin/swapon/swapon.8       |  8 +++++---
>  sbin/swapon/swapon.c       | 31 +++++--------------------------
>  sys/bus/cam/scsi/scsi_da.c |  5 -----
>  6 files changed, 65 insertions(+), 42 deletions(-)
>
> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d9306807fd00040e0598140bd4c634685f805510
>
>
> --
> DragonFly BSD source repository



More information about the Commits mailing list