[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1080485: linux-image-amd64: fstrim does not respect --length on XFS filesystems



Package: linux-image-amd64
Version: 6.1.85-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: robin.bjorklin@gmail.com

Dear Maintainer,

When attempting to use fstrim on an XFS file system I found that it
trims a lot more than what I request.
When execusting this: fstrim -v --offset 0 --length 330000000 /
I was expecting to see fstrim reporting less than 330MB trimmed
however what I found was that fstrim reported 446.9GiB * trimmed.

I have found that this problem has been reproduced and fixed
in a later kernel version and would like to see this patch
backported to the Debian stable kernel.

https://github.com/torvalds/linux/commit/b0ffe661fab4b939e4472ef96b8dac3c74e0e03e

-- System Information:
Debian Release: 12.5
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-20-amd64 (SMP w/80 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-image-amd64 depends on:
ii  linux-image-6.1.0-20-amd64  6.1.85-1

linux-image-amd64 recommends no packages.

linux-image-amd64 suggests no packages.

-- no debconf information

Reply to: