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


Groups > linux.debian.kernel > #72150

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-09 00:00 +0200
Message-ID <CnRVn-6mg-5@gated-at.bofh.it> (permalink)
References (3 earlier) <CnKqS-1Sy-5@gated-at.bofh.it> <CnPTB-5aE-29@gated-at.bofh.it> <CnRLH-6j9-1@gated-at.bofh.it> <wBxnA-5dG-1@gated-at.bofh.it> <CnRLH-6j9-1@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 11:43:06PM +0200, Laurent Bigonville wrote:
> Well I would expect that if I'm running fstrim, the same blocks would not be
> trimmed again (even after reboot) if I'm running the command again

But how would it know that it was already trimmed?

> Here it seems that it's the case, the number of blocks that are being
> trimmed are the same after reboot.

Sure, you did not change the free space (much).

> Are the discard commands delayed and actually not executed when the command
> is run, or am I overlooking something?

You are overlooking that the information about discards is only in
memory.

Bastian

-- 
If some day we are defeated, well, war has its fortunes, good and bad.
		-- Commander Kor, "Errand of Mercy", stardate 3201.7

Back to linux.debian.kernel | Previous | NextPrevious 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