Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1211504

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

From Robin Björklin <robin.bjorklin@gmail.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1080485: linux-image-amd64: fstrim does not respect --length on XFS filesystems
Date 2024-09-04 23:00 +0200
Message-ID <Jj5gB-9YTo-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1080485: linux-image-amd64: fstrim does not respect --length on XFS filesystems Robin  Björklin <robin.bjorklin@gmail.com> - 2024-09-04 23:00 +0200
  Bug#1080485: linux-image-amd64: fstrim does not respect --length on XFS filesystems Salvatore Bonaccorso <carnil@debian.org> - 2024-09-05 09:40 +0200

csiph-web