Re: [PATCH] ext4: prohibit fstrim in norecovery mode

Theodore Ts'o
2019-03-23T16:13:49Z

On Fri, Mar 22, 2019 at 05:38:13PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> The ext4 fstrim implementation uses the block bitmaps to find free space
> that can be discarded. If we haven't replayed the journal, the bitmaps
> will be stale and we absolutely *cannot* use stale metadata to zap the
> underlying storage.
>
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>

Thanks, applied.

- Ted