[haiku-bugs] Re: [Haiku] #8465: No size 'Used Free' information on Desktop Volume Get Info

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Wed, 11 Apr 2012 23:14:00 -0000

#8465: No size 'Used Free' information on Desktop Volume Get Info
   Reporter:  grimus                |      Owner:  anevilyak
       Type:  bug                   |     Status:  assigned
   Priority:  normal                |  Milestone:  R1
  Component:  Applications/Tracker  |    Version:  R1/Development
 Resolution:                        |   Keywords:  Get Info
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All

Comment (by anevilyak):

 Replying to [comment:4 diver]:
 > I tried to reproduce this bug, but I see another behavior: Capacity
 string changes to Size: 5 bytes. Restarting Tracker fixes it.

 I dug into this one a bit ; before the rename, the stat buffer returned by
 BEntry::GetStat() tells us that the type is S_IFDIR, which we then
 correctly promote to the volume type by further checking if it's the root
 directory. However, if you then rename the volume, a subsequent call to
 GetStat() on the same entry ref returns S_IFLNK instead, causing Tracker
 to think you're getting info about a symlink instead. Right now I'm not
 sure what causes this though, and particularly, why restarting Tracker
 clears it up. Will try to dig further when I have a bit more time, though
 if anyone else has some insight here, that would help since I'm not so
 familiar with the filesystem-related portions of the kernel.

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

Other related posts: