[haiku-bugs] Re: [Haiku] #6305: Problem with ext3 volumes

#6305: Problem with ext3 volumes
--------------------------------+-------------------------------------------
  Reporter:  jackburton         |         Owner:  aldeck        
      Type:  bug                |        Status:  in-progress   
  Priority:  normal             |     Milestone:  R1            
 Component:  File Systems/ext2  |       Version:  R1/Development
Resolution:                     |      Keywords:                
Blocked By:                     |   Has a Patch:  1             
  Platform:  All                |      Blocking:                
--------------------------------+-------------------------------------------

Comment (by aldeck):

 Ok, sorry, here is a small test.

 {{{
 #include <Entry.h>
 #include <Path.h>

 #include <stdio.h>
 #include <string.h>


 int
 main(int argc, char **argv)
 {
         BEntry entry("/unnamed volume/home/alex/.bashrc");

         status_t err = entry.InitCheck();
         printf("entry.InitCheck() == %li (%s)\n", err, strerror(err));

         BPath path;
         err = entry.GetPath(&path);
         printf("entry.GetPath() == %li (%s)\n", err, strerror(err));

         err = path.InitCheck();
         printf("path.InitCheck() == %li (%s) path.Path() == '%s'\n", err,
 strerror(err), path.Path());

         return 0;
 }
 }}}

 Output:

 {{{
 entry.InitCheck() == 0 (No error)
 entry.GetPath() == -2147459069 (No such file or directory)
 path.InitCheck() == -2147459069 (No such file or directory) path.Path() ==
 '(null)'
 }}}

 Output for one level up ie: "/unnamed volume/home/alex"

 {{{
 entry.InitCheck() == 0 (No error)
 entry.GetPath() == 0 (No error)
 path.InitCheck() == 0 (No error) path.Path() == '/unnamed
 volume/home/alex'
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6305#comment:20>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: