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


Groups > linux.debian.kernel > #72146

Bug#909473: fstrim shows incorrect trimmed size after reboot

From Bastian Blank <waldi@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#909473: fstrim shows incorrect trimmed size after reboot
Date 2021-06-08 21:50 +0200
Message-ID <CnPTB-5aE-29@gated-at.bofh.it> (permalink)
References (1 earlier) <CjQuR-7w-1@gated-at.bofh.it> <wBxnA-5dG-1@gated-at.bofh.it> <CnKqS-1Sy-5@gated-at.bofh.it> <wBxnA-5dG-1@gated-at.bofh.it> <CnKqS-1Sy-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Hi

On Tue, Jun 08, 2021 at 03:48:11PM +0200, Laurent Bigonville wrote:
> > > There is definitely something boggus here
> Yes, just tested it now and  it's still happening with the kernel currently
> in unstable (5.10.40-1)

Why do you think this numbers are wrong?  "fstrim" initially requests
discard of all unused blocks, so a large number.  But why should it do
the same on subsequent calls while it still knows what it did the last
time?

ext4 caches the information if a particular block group was trimmed, but
this information is not persistent.  (Using bit
EXT4_GROUP_INFO_WAS_TRIMMED_BIT in ext4_group_info.bb_state.)

Bastian

-- 
Live long and prosper.
		-- Spock, "Amok Time", stardate 3372.7

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#909473: fstrim shows incorrect trimmed size after reboot Salvatore Bonaccorso <carnil@debian.org> - 2021-05-28 21:40 +0200
  Processed: Re: Bug#909473: fstrim shows incorrect trimmed size  after reboot "Debian Bug Tracking System" <owner@bugs.debian.org> - 2021-05-28 21:40 +0200
  Bug#909473: fstrim shows incorrect trimmed size after reboot Laurent Bigonville <bigon@debian.org> - 2021-06-08 16:00 +0200
    Processed: Re: Bug#909473: fstrim shows incorrect trimmed size  after reboot "Debian Bug Tracking System" <owner@bugs.debian.org> - 2021-06-08 16:00 +0200
    Bug#909473: fstrim shows incorrect trimmed size after reboot Bastian Blank <waldi@debian.org> - 2021-06-08 21:50 +0200
      Bug#909473: fstrim shows incorrect trimmed size after reboot Laurent Bigonville <bigon@debian.org> - 2021-06-08 23:50 +0200
        Bug#909473: fstrim shows incorrect trimmed size after reboot Bastian Blank <waldi@debian.org> - 2021-06-09 00:00 +0200

csiph-web