#980905 fstrim: FITRIM ioctl failed: Device or resource busy on NTFS device

#980905#5
Date:
2021-01-24 06:16:40 UTC
From:
To:
I encountered the same issue reported by this post
(https://bbs.archlinux.org/viewtopic.php?id=262243).

fstrim failed on NTFS device after upgrading to kernel 5.10. When I type the
command "sudo fstrim -av", it works on EXT4 device but not on NTFS. The error
message is listed below:
--------------------------------------------------------------
fstrim: /mnt/D: FITRIM ioctl failed: Device or resource busy
/: 3.5 GiB (3715059712 bytes) trimmed on /dev/sda4
--------------------------------------------------------------

I have ntfs3g installed and can confirm it worked on kernel 5.9.15. I am not
sure whether it is a kernel change or a bug of fstrim. Please let me know if
there is anything I could help.

util-linux version: 2.36.1-6

#980905#10
Date:
2021-01-24 11:30:12 UTC
From:
To:
* ciwei100000 <ciwei100000+bugzilla@gmail.com> [210124 07:21]:

[..]
[..]

The post you've linked already says this is either a kernel or an
ntfs-3g problem, why file the bug against fstrim/util-linux?

#980905#19
Date:
2021-03-24 17:16:21 UTC
From:
To:
Dear Maintainer,

I'm running a buster system which also fails fstrim on ntfs-3g with a bpo kernel.
I've found this report for Arch Linux: https://bugs.archlinux.org/task/69600
This report references a backport of this kernel fix:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7e0815797656f029fab2edc309406cddf931b9d8

I've not compiled a kernel with this fix yet.

Should we reassign the report to the kernel package?