Displaying 20 results from an estimated 700 matches similar to: "[PATCH v2] New API: resize2fs_P"
2015 Oct 13
4
[PATCH] New API: resize2fs_P
Added support for getting ext2/3/4 filesystem minimum size.
This is needed primarily for shrinking images.
---
daemon/ext2.c | 35 +++++++++++++++++++++++++++++++++++
generator/actions.ml | 10 ++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/daemon/ext2.c b/daemon/ext2.c
index ebaf0f0..3dae40f 100644
--- a/daemon/ext2.c
+++
2015 Oct 13
0
Re: [PATCH] New API: resize2fs_P
On Tue, Oct 13, 2015 at 06:26:25PM +0300, Maxim Perevedentsev wrote:
> Added support for getting ext2/3/4 filesystem minimum size.
> This is needed primarily for shrinking images.
>
> ---
> daemon/ext2.c | 35 +++++++++++++++++++++++++++++++++++
> generator/actions.ml | 10 ++++++++++
> src/MAX_PROC_NR | 2 +-
> 3 files changed, 46 insertions(+), 1
2015 Oct 19
0
[PATCH 2/2] Include resize2fs_P into vfs_min_size.
---
daemon/daemon.h | 1 +
daemon/ext2.c | 45 +++++++++++++++++++++++++++++++++++++++------
daemon/fs-min-size.c | 3 +++
generator/actions.ml | 20 ++++----------------
src/MAX_PROC_NR | 2 +-
5 files changed, 48 insertions(+), 23 deletions(-)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index a690152..61b61e7 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -224,6
2015 Oct 16
0
[PATCH 2/2] Include resize2fs_P into get_min_size.
---
daemon/daemon.h | 1 +
daemon/ext2.c | 37 ++++++++++++++++++++++++++++++++-----
daemon/fs-min-size.c | 3 +++
generator/actions.ml | 20 ++++----------------
src/MAX_PROC_NR | 2 +-
5 files changed, 41 insertions(+), 22 deletions(-)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 8287a99..0cd3964 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -224,6 +224,7 @@
2015 Oct 20
0
[PATCHv3 2/2] Include resize2fs_P into vfs_min_size.
---
daemon/daemon.h | 1 +
daemon/ext2.c | 62 +++++++++++++++++++++++++++++++++++++++++++++-------
daemon/fs-min-size.c | 3 +++
generator/actions.ml | 20 ++++-------------
src/MAX_PROC_NR | 2 +-
5 files changed, 63 insertions(+), 25 deletions(-)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 3b0266d..8bcc9bd 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@
2015 Oct 19
1
Re: [PATCH 2/2] Include resize2fs_P into vfs_min_size.
On Monday 19 October 2015 17:05:03 Maxim Perevedentsev wrote:
> ---
> daemon/daemon.h | 1 +
> daemon/ext2.c | 45 +++++++++++++++++++++++++++++++++++++++------
> daemon/fs-min-size.c | 3 +++
> generator/actions.ml | 20 ++++----------------
> src/MAX_PROC_NR | 2 +-
> 5 files changed, 48 insertions(+), 23 deletions(-)
>
> diff --git
2015 Oct 19
5
[PATCHv2 0/2] Introduce vfs_min_size API to get minimum filesystem size.
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
2015 Oct 16
4
[PATCH 0/2] Introduce get_min_size API to get minimum filesystem size.
Tried to make it in accordance with your comments.
Maybe you can suggest a better name for API?
Maxim Perevedentsev (2):
New API: get_min_size
Include resize2fs_P into get_min_size.
daemon/Makefile.am | 1 +
daemon/daemon.h | 2 ++
daemon/ext2.c | 37 ++++++++++++++++++++++++----
daemon/fs-min-size.c | 49 +++++++++++++++++++++++++++++++++++++
daemon/ntfs.c | 68
2015 Oct 20
4
[PATCHv3 0/2] Introduce vfs_min_size API to get minimum filesystem size.
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.
Difference to v2:
Changed name to vfs_minimum_size.
Changed parsing to xstrtol + STR* macros where possible.
Maxim Perevedentsev (2):
New API: vfs_min_size
Include resize2fs_P into vfs_min_size.
daemon/Makefile.am | 1 +
2015 Oct 20
8
[PATCHv4 0/2] Introduce vfs_minimum_size API to get minimum filesystem size.
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.
Difference to v2:
Changed name to vfs_minimum_size.
Changed parsing to xstrtol + STR* macros where possible.
Difference to v3:
Decapitalize error messages.
Maxim Perevedentsev (2):
New API: vfs_minimum_size
Include resize2fs_P into
2015 Oct 16
2
[PATCH] New API: ntfsresize_info
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'.
---
daemon/ntfs.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 17 +++++++++++++
2015 Oct 20
1
[PATCHv3 0/2] Introduce vfs_min_size API to get minimum filesystem size.
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.
Difference to v2:
Changed name to vfs_minimum_size.
Changed parsing to xstrtol + STR* macros where possible.
Maxim Perevedentsev (2):
New API: vfs_min_size
Include resize2fs_P into vfs_min_size.
daemon/Makefile.am | 1 +
2012 Jan 13
3
[PATCH v2 1/3] ext2: tweak the error returned message of resize2fs-M(BZ755729)
From: Wanlong Gao <gaowanlong at cn.fujitsu.com>
Tweak the error message "e2fsck -f" and "e2fsck -fy".
Indicate the user to use the correct and/or forceall options.
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
daemon/ext2.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/daemon/ext2.c b/daemon/ext2.c
index
2015 Oct 14
0
Re: [PATCH] New API: resize2fs_P
On Tue, Oct 13, 2015 at 06:26:25PM +0300, Maxim Perevedentsev wrote:
Another couple of things ...
> + char pattern[] = "Estimated minimum size of the filesystem: ";
This should be 'const char *pattern'.
> + if ((p = strstr (lines[i], pattern))) {
> + if (sscanf (p + strlen(pattern), "%" SCNu64, &ret) != 1)
> + return -1;
> +
2015 Oct 14
0
Re: [PATCH] New API: resize2fs_P
Hi,
On Wednesday 14 October 2015 12:53:26 Maxim Perevedentsev wrote:
> This multiplication may confuse users who got used to "normal" resize2fs
> -P behavior (blocks) due to the name of API command.
> I'm going to implement similar functionality for other filesystems
> (ntfs, btrfs, xfs).
Then please implement a single function for all these filesystems,
just like
2015 Oct 14
2
Re: [PATCH] New API: resize2fs_P
> There's a case for multiplying the return size by the block size of
> the filesystem, thus returning the size in bytes. It might make the
> API easier to use. Not sure how hard that is, or whether it actually
> makes the API easier to use.
>
> Rich.
This multiplication may confuse users who got used to "normal" resize2fs
-P behavior (blocks) due to the name of
2012 Jan 13
4
[PATCH 1/3] ext2: tweak the error returned message of resize2fs-M(BZ755729)
From: Wanlong Gao <gaowanlong at cn.fujitsu.com>
Tweak the error message "e2fsck -f" and "e2fsck -fy".
Indicate the user to use the correct and/or forceall options.
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
daemon/ext2.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/daemon/ext2.c b/daemon/ext2.c
index
2015 Oct 16
0
[PATCH 1/2] New API: get_min_size
This call provides the way to get minimum size of filesystem.
This is needed for shrinking. The return units are bytes.
---
daemon/Makefile.am | 1 +
daemon/daemon.h | 1 +
daemon/fs-min-size.c | 46 +++++++++++++++++++++++++++++++++++
daemon/ntfs.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 15 ++++++++++++
po/POTFILES | 1 +
2015 Oct 19
0
[PATCH 1/2] New API: vfs_min_size
This call provides the way to get minimum size of filesystem.
This is needed for shrinking. The return units are bytes.
---
daemon/Makefile.am | 1 +
daemon/daemon.h | 1 +
daemon/fs-min-size.c | 46 ++++++++++++++++++++++++++++++++
daemon/ntfs.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 16 +++++++++++
po/POTFILES | 1 +
2015 Oct 19
5
Re: [PATCH 1/2] New API: vfs_min_size
On Monday 19 October 2015 17:05:02 Maxim Perevedentsev wrote:
> This call provides the way to get minimum size of filesystem.
> This is needed for shrinking. The return units are bytes.
>
> ---
> daemon/Makefile.am | 1 +
> daemon/daemon.h | 1 +
> daemon/fs-min-size.c | 46 ++++++++++++++++++++++++++++++++
> daemon/ntfs.c | 75