aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorQinghua Jin <[email protected]>2022-03-23 16:06:23 -0700
committerLinus Torvalds <[email protected]>2022-03-23 19:00:34 -0700
commit9ce3c0d26c42d279b6c378a03cd6a61d828f19ca (patch)
tree9bc4f3477f74077b3a2d0a836c9568646f7a4830 /scripts/gdb/linux/tasks.py
parentaeb213cddeb5c31f8d418180e0b9956bfd53b018 (diff)
minix: fix bug when opening a file with O_DIRECT
Testcase: 1. create a minix file system and mount it 2. open a file on the file system with O_RDWR|O_CREAT|O_TRUNC|O_DIRECT 3. open fails with -EINVAL but leaves an empty file behind. All other open() failures don't leave the failed open files behind. It is hard to check the direct_IO op before creating the inode. Just as ext4 and btrfs do, this patch will resolve the issue by allowing to create the file with O_DIRECT but returning error when writing the file. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Qinghua Jin <[email protected]> Reported-by: Colin Ian King <[email protected]> Reviewed-by: Jan Kara <[email protected]> Acked-by: Christian Brauner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions