On Fri, Oct 16, 2015 at 03:00:15PM +0200, Pino Toscano wrote:
On Friday 16 October 2015 15:55:44 Maxim Perevedentsev wrote:
> Get minimum size of NTFS filesystem in bytes. This is used primarily for shrinking
images.
>
> In case of a full images ntfsresize returns error code and does not print minimum
size.
> So we calculate it manually by rounding 'volume size' up to 'cluster
size'.
NACK to a separate API per-filesystem.
As I said in a previous email, please turn the newly added resize2fs_P
into a generic API for getting the minimum size of a filesystem, either
bytes or blocks. See for example set_label and set_uuid.
For example:
https://github.com/libguestfs/libguestfs/blob/master/daemon/labels.c#L61-L93
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW