Bug 31201

Summary: [libdisk] [patch] add free_space(chunk) to libdisk
Product: Base System Reporter: AnarCat <AnarCat>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: jpaetzel
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff none

Description AnarCat 2001-10-10 17:40:00 UTC
There is no function available to see the "free space" available on a
given slice, where free space is defined as per
src/release/sysinstall/label.c:255 (free = size - sum of used parts)

Fix: patch libdisk to include sysinstall' space_free. note that this makes
use of errno to signal an error, this might not be proper style since
size args are usually u_long and we're using plain long here to signal
the error (-1).
How-To-Repeat: 
n/a