ladybird/Kernel/FileSystem
Mart G cab6155254 Kernel: Allow Ext2FSInode::write_bytes calls with a byte count of zero
write_bytes is called with a count of 0 bytes if a directory is being
deleted, because in that case even the . and .. pseudo directories are
getting removed. In this case write_bytes is now a no-op.

Before write_bytes would fail because it would check to see if there
were any blocks available to write in (even though it wasn't going to
write in them anyway).

This behaviour was uncovered because of a recent change where
directories are correctly reduced in size. Which in this case results in
all the blocks being removed from the inode, whereas previously there
would be some stale blocks around to pass the check.
2021-05-07 21:11:55 +02:00
..
AnonymousFile.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
AnonymousFile.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
BlockBasedFileSystem.cpp Kernel: Remove the now defunct LOCKER(..) macro. 2021-04-25 09:38:27 +02:00
BlockBasedFileSystem.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Custody.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Custody.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
DevFS.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
DevFS.h Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
DevPtsFS.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
DevPtsFS.h Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
ext2_fs.h Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
ext2_types.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Ext2FileSystem.cpp Kernel: Allow Ext2FSInode::write_bytes calls with a byte count of zero 2021-05-07 21:11:55 +02:00
Ext2FileSystem.h Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
FIFO.cpp Kernel: Remove the now defunct LOCKER(..) macro. 2021-04-25 09:38:27 +02:00
FIFO.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
File.cpp Kernel: Closing a file descriptor should not always close the file 2021-04-30 11:42:35 +02:00
File.h Kernel: Closing a file descriptor should not always close the file 2021-04-30 11:42:35 +02:00
FileBackedFileSystem.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FileBackedFileSystem.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FileDescription.cpp Kernel: Closing a file descriptor should not always close the file 2021-04-30 11:42:35 +02:00
FileDescription.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FileSystem.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FileSystem.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Inode.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
Inode.h Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
InodeFile.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
InodeFile.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
InodeIdentifier.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
InodeMetadata.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
InodeWatcher.cpp Kernel: Remove the now defunct LOCKER(..) macro. 2021-04-25 09:38:27 +02:00
InodeWatcher.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Plan9FileSystem.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
Plan9FileSystem.h Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
ProcFS.cpp Kernel: Allow remapping Caps Lock to Control (#6883) 2021-05-05 23:10:56 +02:00
ProcFS.h Kernel: Fix writes to ProcFS (#6879) 2021-05-05 21:07:13 +02:00
TmpFS.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
TmpFS.h Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
VirtualFileSystem.cpp Kernel: Change Inode::{read/write}_bytes interface to KResultOr<ssize_t> 2021-05-02 13:27:37 +02:00
VirtualFileSystem.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00