Opened 19 years ago

Closed 18 years ago

#8484 closed enhancement (fixed)

PATCH: xattr 0.1 improve set/delete attribute reliability

Reported by: ulrich.kohlhase@… Owned by: drernie@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: drernie@…, markd@…
Port:

Description

I noticed VERY confusing and annoying effects while experimenting with this tool: changes would get reverted after several minutes, Volume (un)mounts or after reboot (most likely related to the buffer cache being flushed by "update"). The patched set/delete routines call fcntl() to turn data caching off and to force immediate on-disk modifications. I believe "xattr.h" should be changed to <sys/xattr.h> in all source files including xattr.h, patches to XARemoveOperation.c and XASetOperation.c are appended. The patch for xattr.c makes the explanation for the get operation option clearer.

Attachments (3)

patch-XARemoveOperation.c.diff (1.1 KB) - added by ulrich.kohlhase@… 19 years ago.
XARemoveOperation.c patch
patch-XASetOperation.c.diff (1.2 KB) - added by ulrich.kohlhase@… 19 years ago.
XASetOperation.c diff
patch-xattr.c.diff (866 bytes) - added by ulrich.kohlhase@… 19 years ago.
xattr.c diff

Download all attachments as: .zip

Change History (8)

Changed 19 years ago by ulrich.kohlhase@…

XARemoveOperation.c patch

Changed 19 years ago by ulrich.kohlhase@…

Attachment: patch-XASetOperation.c.diff added

XASetOperation.c diff

Changed 19 years ago by ulrich.kohlhase@…

Attachment: patch-xattr.c.diff added

xattr.c diff

comment:1 Changed 18 years ago by markd@…

Cc: drernie@… markd@… added
Owner: changed from darwinports-bugs@… to drernie@…

Assigning to maintainer.

comment:2 Changed 18 years ago by markd@…

Type: defectenhancement

comment:3 Changed 18 years ago by markd@…

Is this ok with the mantainer?

comment:4 Changed 18 years ago by drernie@…

Yes, it is okay with me (DrErnie).

comment:5 Changed 18 years ago by markd@…

Resolution: fixed
Status: newclosed

Committed. Thanks!

Note: See TracTickets for help on using tickets.