On 03/25/10 02:25 PM, Dave Miner wrote:
On 03/23/10 01:04 PM, Shawn Walker wrote:
On 03/23/10 11:50 AM, William Schumann wrote:
...
Will summing pi.size be a good estimation of disk space usage?
Yes, for a clean install case (which is your case), summing pi.size
should give you a good estimation of the amount of disk usage that the
installed packages will used.
Keep in mind that this won't give you an estimate of how much space the
download phase will need to store all of the compressed package data
that's retrieved, the package manifests (which were retrieved during the
plan_install call), any space used by SMF services that will be started
when the image is "booted", or any temporary files needed by the
packaging system during the operation.
Of these, download size seems to dominate and thus be the important
overhead to account for. Is there an RFE already in place for
aggregating the pkg.csize attributes from the actions in the same way as
pi.size?
The download size is already calculated, but not exposed to API consumers.
Bug 4134 essentially covers this.
It's something I hope to have time to address in the near future.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss