Tried to make it in accordance with your comments.
Difference to v1:
Added reply_with_error where necessary.
Changed name get_min_size -> vfs_min_size.
Maxim Perevedentsev (2):
New API: vfs_min_size
Include resize2fs_P into vfs_min_size.
daemon/Makefile.am | 1 +
daemon/daemon.h | 2 ++
daemon/ext2.c | 45 ++++++++++++++++++++++++++-----
daemon/fs-min-size.c | 49 ++++++++++++++++++++++++++++++++++
daemon/ntfs.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 16 ++++++-----
po/POTFILES | 1 +
7 files changed, 177 insertions(+), 12 deletions(-)
create mode 100644 daemon/fs-min-size.c
--
1.8.3.1