Dave Miner wrote:
> Shawn Walker wrote:
>> There is intentionally no interface to clear the download history.  
>> The pkg history command is modeled after the "zpool history" command, 
>> which as far as I know, doesn't provide a user a way to clear the 
>> history of a pool.
>>
>> I understand your need, but I don't know how to satisfy the 
>> requirement of "don't give users knobs they shouldn't have" and give 
>> others the tools they need.
>>
>> I'm a little torn here, and I could use some direction.
>>
> 
> Why shouldn't the user have the knob?  They'll surely discover the 
> ability to remove the /history directory if they really want to do so, 
> and I think there are other legitimate uses besides DC's.  If the 
> requirement is for an auditable log of operations, then I'd suggest pkg 
> should use auditing.

I didn't have a specific requirement given to me, I was just trying to 
follow the zpool history model since it was consistently mentioned as 
the idea one to follow.

> While you're right that zpool doesn't offer a way to clear its log, it's 
> also implemented as a ring buffer so that its space consumption is bounded.

Yes, I saw that while I was working on this.  That's why I planned to 
allow the user to set the bound based on number of entries.

Nevertheless, your concern is duly noted.  I'll add a switch in the next 
round of reviews to allow purging it.

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

Reply via email to