From 7b8fda2e8e7b1752cba1fab01d7f569b5d87e661 Mon Sep 17 00:00:00 2001 From: Narthorn Date: Sat, 7 May 2022 07:43:02 +0200 Subject: [PATCH] fstrim: check for ENOSYS when using --quiet-unsupported Some filesystems like bindfs report ENOSYS (Function not implemented) for the trim ioctl, which should be caught by --quiet-unsupported. --- sys-utils/fstrim.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c index 0d6cabeb96..88333e91db 100644 --- a/sys-utils/fstrim.c +++ b/sys-utils/fstrim.c @@ -122,6 +122,7 @@ static int fstrim_filesystem(struct fstrim_control *ctl, const char *path, const case EBADF: case ENOTTY: case EOPNOTSUPP: + case ENOSYS: rc = 1; break; default: -- 2.47.2