summaryrefslogtreecommitdiffstats
path: root/fs/libfs.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-03-22 18:10:22 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-03-25 08:03:29 -0700
commited79dac98c5e9f8471456afe2cc09a3912586b52 (patch)
tree8c6cc62bf32cca22fcf480f87760038d80399c73 /fs/libfs.c
parent4b0bce30f39b7733420bb8b28e340aa91c219bc1 (diff)
downloadlinux-ed79dac98c5e9f8471456afe2cc09a3912586b52.tar.bz2
xfs: prohibit fstrim in norecovery mode
The xfs fstrim implementation uses the free space btrees to find free space that can be discarded. If we haven't recovered the log, the bnobt 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> Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'fs/libfs.c')
0 files changed, 0 insertions, 0 deletions