DragonOS/kernel/crates/rust-jhash/tests
LoGin b28f766956
feat(vfs): Implement append lock manager for file operations (#1483)
* feat(vfs): Implement append lock manager for file operations

- Introduced an `AppendLockManager` to ensure atomicity for append operations across filesystems, preventing data corruption in concurrent write scenarios.
- Updated file write methods to utilize the new append lock mechanism, ensuring that appending to files respects the latest end-of-file position.
- Enhanced `write_append` and `pwrite_append` methods to support forced append semantics, aligning with Linux behavior.
- Initialized the append lock manager during VFS initialization to ensure it is ready before any file write operations.

This addition improves the reliability of file operations in a multi-threaded environment, particularly for append scenarios.

Signed-off-by: longjin <longjin@DragonOS.org>

* feat(kernel): 添加jhash库并用于append_lock的哈希计算

Signed-off-by: longjin <longjin@DragonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
2025-12-16 23:55:53 +08:00
..
test.rs feat(vfs): Implement append lock manager for file operations (#1483) 2025-12-16 23:55:53 +08:00