[pedevel] Re: "Bug" with files on a Samba share

  • From: "BiPolar" <BiPolar@xxxxxxxxxxxx>
  • To: pedevel@xxxxxxxxxxxxx
  • Date: Mon, 22 Mar 2004 05:21:36 -0300 ART

> > Another thing here is, should the change the way the temporary backup is 
> > made from rename-write to duplicate-overwrite:
> > pro:  the icon would stay on the same place in Tracker con:  it would 
> > double the time to save a file
> > Perhaps this could be solved by restoring the Tracker position attributes
> 
> Hm, this might prove pretty hard, since there may be a race condition 
> between Pe and Tracker's node monitor to write these attributes.

Well, actually Pe does not always plays nicely with file's attributes.
Try this to see what I mean:

- Grab any text file and add an Icon attribute to it.
  (I did that for a couple of "Install.sh"/"Uninstall.sh" scripts).
- Open the file in Pe, change something, save, close.
  Go to Tracker to see how the icon got corrupted (the 32x32 one, the smaller 
looks ok).

 Here, the 32x32 Icon attribute gets overriten with FF's and shrinked to 24 
bytes long (both QuickRes and OBOS DiskProbe report that).

This could be the old issue of attributes not fitting within the BFS block 
(mine is 2048), but the fact that this happens even when the "pe_info" 
attribute was already there makes me think its Pe's fault.

Oscar.

Other related posts: