-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some assign arc buf with brt clone and O_TRUNC
this fixes some bugs when opening a file wiht O_TRUNC and writing to the same file at the same time with `dd` for example. O_TRUNC in the VFS calls set_attr and set_attr will figure out a trunc based on the O_TRUNC flag. dmu_free_long_range_impl will free the data after that. If a reflink is and write is running at the same time it will fail with: kernel:VERIFY(db->db_state == DB_CACHED || db->db_state == DB_UNCACHED) failed kernel:PANIC at dbuf.c:2925:dbuf_assign_arcbuf() Signed-off-by: Kay Pedersen <[email protected]>
- Loading branch information
1 parent
a5fdba1
commit a1a87b2
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters