aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorNekun <[email protected]>2023-10-30 08:33:54 +0000
committerKonstantin Komarov <[email protected]>2024-01-29 09:05:09 +0000
commit1f5fa4b3b85ceb43f1053290f0ade037b50e6297 (patch)
tree3ecc3a7b3483e9b59d82f836260630e606b2aee6 /scripts/generate_rust_target.rs
parentfs/ntfs3: Fix oob in ntfs_listxattr (diff)
downloadkernel-1f5fa4b3b85ceb43f1053290f0ade037b50e6297.tar.gz
kernel-1f5fa4b3b85ceb43f1053290f0ade037b50e6297.zip
fs/ntfs3: Add ioctl operation for directories (FITRIM)
While ntfs3 supports discards, FITRIM ioctl() command has defined only for regular files. This may confuse users trying to invoke `fstrim` utility with the directory argument (for example, call `fstrim <mountpoint>` which is the common practice). In this case, ioctl() returns -ENOTTY without any error messages in kernel ring buffer, this may be easily interpreted as no support for discards in ntfs3 driver. Currently only FITRIM command implemented in ntfs_ioctl() and passed inode used only for dereferencing NTFS superblock, so no need for separate ioctl() handler for directories, just add existing ntfs_ioctl() handler to ntfs_dir_operations. Signed-off-by: Nekun <[email protected]> Signed-off-by: Konstantin Komarov <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions