Как выполнить fstrim на петлевом устройстве?

Debian 9 «Stretch» ​​использует драйвер libinput

$ mkdir -p /etc/X11/xorg.conf.d
$ echo 'Section "InputClass"
    Identifier "libinput touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "Tapping" "on"
EndSection' > /etc/X11/xorg.conf.d/40-libinput.conf
$ systemctl restart lightdm

Из Вики Debian

1
16.10.2016, 02:54
1 ответ

Кажется, это невозможно. Я попытался выяснить, почему -это комментарий отloop.c:

        /*
         * If the backing device is a block device, mirror its zeroing
         * capability. Set the discard sectors to the block device's zeroing
         * capabilities because loop discards result in blkdev_issue_zeroout(),
         * not blkdev_issue_discard(). This maintains consistent behavior with
         * file-backed loop devices: discarded regions read back as zero.
         */

Тонкие устройства LVM НЕ сообщают о возможности обнуления(write_zeroes_max_bytesесть0). Я специально проверил dm-thin.c, чтобы подтвердить это.

0
01.01.2021, 21:11

Теги

Похожие вопросы