[haiku-development] Re: Some more weird stuff.

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 30 Nov 2007 17:23:54 +0100 CET

> > warning: wrote -1 attribute bytes of 29
> > warning: wrote -1 attribute bytes of 29
> > warning: wrote -1 attribute bytes of 20
>
> I fixed those in r23030. Accessing attributes of symlinks was broken.

Ok.

>
> > Error getting info for attribute `BEOS:TYPE' of file
> > `generated/tmp/unzip/./Wond erBrush/Documentation (English)': Bad
> > file
> > descriptor
> > Error: Command failed: Bad file descriptor
> > Error: Command was:
> >    cp -r :generated/tmp/unzip/. /myfs/apps
>
> That's a symlink, so it's the same problem. Though I wonder, how it
> got the
> attribute in the first place, since the unzip above failed to write
> it.
> Couldn't reproduce it here.

That's due to the symlink having the same inode that a previous file
that had those attributes.

>
> > rm: cannot remove
> > `generated/attributes/1682703316827034168270581682708616827090
> >
> > 16827122168271281682714016827144168271481682715216827156168271601682716
41682
>
> That seems to be a feature of François's recent addition to the
> build_haiku_image script. Can't reproduce it here.

Thus the fix...

> PS: If you use Linux, it's highly recommended to tell the build
> system to use
> xattrs, since that makes the build significantly faster (even on FSs
> that
> don't natively support xattrs (like ReiserFS 3.6)) and you don't have
> that
> messy generated/attributes directory. To enable it, pass --use-xattr
> to the
> configure script. You'll need to touch src/build/libroot/fs_attr.cpp,
> if you
> want to avoid deleting all generated files. Removing generated/
> attributes is
> recommended.
>

Hmm Yes I tried but got some error at some point, will retry later.

François.

Other related posts: