[haiku-bugs] Re: [Haiku] #13612: BTRFS: Adding write support

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Sat, 22 Jul 2017 09:55:06 -0000

#13612: BTRFS: Adding write support
----------------------------------+----------------------------
   Reporter:  hyche               |      Owner:  korli
       Type:  enhancement         |     Status:  new
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  File Systems/Btrfs  |    Version:  R1/Development
 Resolution:                      |   Keywords:  gsoc2017
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+----------------------------

Comment (by pulkomandy):

 In the first change (style fixes), in btrfs_read_attr_dir:

 {{{

 +       if (status != B_OK)
 +               return status;
 +
         if (status == B_ENTRY_NOT_FOUND) {
                 *_num = 0;
                 return B_OK;
 -       } else if (status != B_OK)
 -               return status;
 +       }

 }}}

 The previous code would ignore the B_ENTRY_NOT_FOUND error and return B_OK
 instead. Now it will fail. Is that intentional?

--
Ticket URL: <https://dev.haiku-os.org/ticket/13612#comment:10>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: