[haiku-commits] Change in haiku[master]: BFS: allow deleting "bad data" files

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 20 Feb 2020 05:06:09 +0000

From X512 <danger_mail@xxxxxxx>:

X512 has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/2257 ;)


Change subject: BFS: allow deleting "bad data" files
......................................................................

BFS: allow deleting "bad data" files

"bad data" files now can be deleted with "rm --force <name>".

Change-Id: I44bda91f3c2198d30212b4d7791a9b55f947c926
---
M src/add-ons/kernel/file_systems/bfs/Inode.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/57/2257/1

diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp 
b/src/add-ons/kernel/file_systems/bfs/Inode.cpp
index 2fe7a8f..1d1ce8d 100644
--- a/src/add-ons/kernel/file_systems/bfs/Inode.cpp
+++ b/src/add-ons/kernel/file_systems/bfs/Inode.cpp
@@ -2504,7 +2504,7 @@
        status_t status = vnode.Get(&inode);
        if (status < B_OK) {
                REPORT_ERROR(status);
-               return B_ENTRY_NOT_FOUND;
+               return fTree->Remove(transaction, name, id);
        }

        T(Remove(inode, name));

--
To view, visit https://review.haiku-os.org/c/haiku/+/2257
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I44bda91f3c2198d30212b4d7791a9b55f947c926
Gerrit-Change-Number: 2257
Gerrit-PatchSet: 1
Gerrit-Owner: X512 <danger_mail@xxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: BFS: allow deleting "bad data" files - Gerrit