On 01/14/10 05:37 PM, Shawn Walker wrote:
On 01/13/10 08:40 PM, Shawn Walker wrote:
On 01/13/10 06:42 PM, Shawn Walker wrote:
On 01/13/10 02:07 PM, Shawn Walker wrote:
Greetings,

The following webrev contains fixes for the following issue:

1668 image locking needed to prevent race conditions

1st webrev:
http://cr.opensolaris.org/~swalker/pkg-lock/

new webrev (diff against 1st):
http://cr.opensolaris.org/~swalker/pkg-lock-2/

new webrev (diff against 2nd):
http://cr.opensolaris.org/~swalker/pkg-lock-3/

new webrev (last i hope?) (diff against 3rd):
http://cr.opensolaris.org/~swalker/pkg-lock-4/

new webrev (diff against 4th):
http://cr.opensolaris.org/~swalker/pkg-lock-5/

full webrev (complete set of changes):
http://cr.opensolaris.org/~swalker/pkg-lock-5-full/

Change Summary:
* changed unlock to truncate lock file instead of removing since the lock file itself is only used so that it has something to use lockf() on and to store information about the caller who acquired the lock

* added iso-8601 utc timestamp to lock file to aid debugging in trying to determine how long a lock has been held

* updated unit tests to account for truncation/size checks

--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to