On Tue, Feb 03, 2015 at 02:51:10PM +0800, Hu Tao wrote:
On Wed, Jan 28, 2015 at 03:43:19PM +, Richard W.M. Jones wrote:
On Wed, Jan 28, 2015 at 02:24:15PM +0800, Hu Tao wrote:
On Wed, Dec 17, 2014 at 03:07:11PM +0800, Hu Tao wrote:
On Thu, Oct 30, 2014 at 10:46:52AM +0800, Hu Tao
'btrfs qgroup show' used to output bytes in raw, but in
btrfs-progs v3.18.2 it outputs bytes with suffix KiB, MiB
or like by default, which causes error when parsing the output.
Fix it by adding '--raw' to let 'btrfs qgroup show' output raw numbers
always.
Signed-off-by: Hu Tao hu
On Mon, Feb 02, 2015 at 01:29:35PM +, Richard W.M. Jones wrote:
On Mon, Feb 02, 2015 at 02:11:31PM +0800, Hu Tao wrote:
[..]
So in fact there are a few problems. I couldn't get btrfs balance to
actually do anything at all (perhaps it doesn't work on empty
filesystems), so this come
On Wed, Jan 28, 2015 at 03:43:19PM +, Richard W.M. Jones wrote:
On Wed, Jan 28, 2015 at 02:24:15PM +0800, Hu Tao wrote:
On Wed, Dec 17, 2014 at 03:07:11PM +0800, Hu Tao wrote:
On Thu, Oct 30, 2014 at 10:46:52AM +0800, Hu Tao wrote:
Hi Rich,
This is rebase of v5 series
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 140 +++
generator/actions.ml | 16
generator/structs.ml | 22 +
gobject/Makefile.inc | 2 +
java
changes in v2:
- add check for the length of lines[]
- the code parsing 'btrfs scrub -R status' output is changed into a loop
Hu Tao (2):
New API: btrfs_balance_status
New API: btfs_scrub_status.
daemon/btrfs.c | 263 +++
generator
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 123 +++
generator/actions.ml | 10 +++
generator/structs.ml | 12 +++
gobject/Makefile.inc | 2 +
java
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
These two patches are refactored to parse the output info structures.
daemon/btrfs.c | 109 +++
generator/actions.ml | 10 +++
generator/structs.ml | 12
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 142 +++
generator/actions.ml | 16
generator/structs.ml | 22 +
gobject/Makefile.inc | 2 +
java
On Tue, Jan 27, 2015 at 08:41:36AM +, Richard W.M. Jones wrote:
The real problem is not the name, but this:
Oh, I got you now. Yes, inspect-internal command is for debugging purpose
only, and not recommanded for general use.
Regards,
Hu
This appears to indicate that these
APIs are
On Wed, Dec 17, 2014 at 03:07:11PM +0800, Hu Tao wrote:
On Thu, Oct 30, 2014 at 10:46:52AM +0800, Hu Tao wrote:
Hi Rich,
This is rebase of v5 series. Meanwhile, I found a bug when shrinking
partitions, and the fix is incuded in this version (patch 2).
Hi,
When support to resizing
On Wed, Jan 21, 2015 at 01:58:02PM +, Richard W.M. Jones wrote:
On Fri, Jan 16, 2015 at 10:23:35AM +0800, Hu Tao wrote:
[...]
Thanks for these patches. I will push all of them shortly *except*:
Thanks!
New API: btrfs_balance_status
New API: btrfs_scrub_status
- These ones
On Tue, Jan 27, 2015 at 09:24:35AM +0800, Hu Tao wrote:
On Wed, Jan 21, 2015 at 01:58:02PM +, Richard W.M. Jones wrote:
On Fri, Jan 16, 2015 at 10:23:35AM +0800, Hu Tao wrote:
[...]
Thanks for these patches. I will push all of them shortly *except*:
Thanks!
New API
Reviewed-by: Hu Tao hu...@cn.fujitsu.com
On Tue, Jan 20, 2015 at 04:28:41PM +0100, Pino Toscano wrote:
Make sure to free the backend string after using it.
---
src/launch-libvirt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/launch-libvirt.c b/src/launch
On Tue, Jan 20, 2015 at 04:28:40PM +0100, Pino Toscano wrote:
The code is already within a if (prompt) {...} block, so checking for
prompt again is redundant.
---
fish/fish.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fish/fish.c b/fish/fish.c
index
On Mon, Jan 05, 2015 at 01:01:52PM +0100, Pino Toscano wrote:
In data venerdì 26 dicembre 2014 16:17:49, Hu Tao ha scritto:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 16
src
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 10 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index f525ea2..6dde36d
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 10 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 6dde36d..1053b98
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 10 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index f215cc4..c32d1bb
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 26 ++
generator/actions.ml | 14 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 41 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index a17d656..78c5498 100644
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 41 +
generator/actions.ml | 10 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 52 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 7f06c74
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 16
src/MAX_PROC_NR | 2 +-
3 files changed, 49 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 09ee7dd
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 38 ++
generator/actions.ml | 15 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 54 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index e9b6f26
, btrfs_balance_cancel, btrfs_balance_resume
and btrfs_balance_status.
- can't determine a valid logical address for test
btrfs_inspect_logical_resolve.
Thank you very much for review!
Regards,
Hu
Hu Tao (16):
New API: btrfs_scrub
New API: btrfs_scrub_cancel
New API
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 9 +
src/MAX_PROC_NR | 2 +-
3 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 1053b98..cdf3982
btrfs filesystem balance is deprecated in favor of btrfs balance.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 1 -
generator/actions.ml | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 167dd49..f525ea2 100644
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 17 +
gobject/Makefile.inc | 2 +-
java/Makefile.inc| 2 +-
src/MAX_PROC_NR | 2 +-
5 files changed, 52 insertions(+), 3 deletions(-)
diff
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 26 ++
generator/actions.ml | 14 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 41 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 78c5498..e9b6f26 100644
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 10 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index c32d1bb..167dd49
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 41 +
generator/actions.ml | 15 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 57 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 4a6871c
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 49 +
generator/actions.ml | 20
gobject/Makefile.inc | 2 ++
po/POTFILES | 1 +
src/MAX_PROC_NR | 2 +-
5 files changed, 73 insertions(+), 1
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 11 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index cdf3982..09ee7dd
On Tue, Jan 13, 2015 at 01:36:56PM +0100, Pino Toscano wrote:
On Monday 12 January 2015 09:37:36 Hu Tao wrote:
On Wed, Jan 07, 2015 at 01:25:50PM +0100, Pino Toscano wrote:
In data venerdì 26 dicembre 2014 16:17:46, Hu Tao ha scritto:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
On Tue, Jan 13, 2015 at 02:00:13PM +0100, Pino Toscano wrote:
On Friday 26 December 2014 16:17:48 Hu Tao wrote:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 20
src/MAX_PROC_NR
On Wed, Jan 07, 2015 at 01:25:50PM +0100, Pino Toscano wrote:
In data venerdì 26 dicembre 2014 16:17:46, Hu Tao ha scritto:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 24
generator/actions.ml | 14 ++
src/MAX_PROC_NR
On Wed, Jan 07, 2015 at 11:23:29AM +0100, Pino Toscano wrote:
In data martedì 6 gennaio 2015 09:30:19, Hu Tao ha scritto:
diff --git a/generator/actions.ml b/generator/actions.ml
index c328319..5223eb8 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -12281,6
On Wed, Jan 07, 2015 at 12:37:48PM +0100, Pino Toscano wrote:
In data venerdì 26 dicembre 2014 16:17:45, Hu Tao ha scritto:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 17 +
src
On Mon, Jan 05, 2015 at 01:01:52PM +0100, Pino Toscano wrote:
In data venerdì 26 dicembre 2014 16:17:49, Hu Tao ha scritto:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 16
src
On Mon, Jan 05, 2015 at 01:26:08PM +0100, Pino Toscano wrote:
In data venerdì 26 dicembre 2014 16:17:47, Hu Tao ha scritto:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 15 +++
src
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 20
src/MAX_PROC_NR | 2 +-
3 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 6c74892
.
Other APIs have no problem.
Regards,
Hu
Hu Tao (5):
New API: btrfs_scrub
New API: btrfs_check
New API: btrfs_filesystem_get_label
New API: add btrfs_filesystem_defragment
New API: btrfs_filesystem_set_label
daemon/btrfs.c | 153
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 16
src/MAX_PROC_NR | 2 +-
3 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 32b1b05
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 24
generator/actions.ml | 14 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 39 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 79de539..de20bc3 100644
On Thu, Oct 30, 2014 at 10:46:52AM +0800, Hu Tao wrote:
Hi Rich,
This is rebase of v5 series. Meanwhile, I found a bug when shrinking
partitions, and the fix is incuded in this version (patch 2).
Hi,
When support to resizing logical partitions is enabled, there is a
problem about resizing
steps to reproduce:
./run guestfish -N disk:1536M EOF
part-init /dev/sda mbr
part-add /dev/sda p 1 1048577
part-add /dev/sda p 1048578 2097154
part-add /dev/sda p 2097155 -1
mkfs ext2 /dev/sda1
mkfs ext2 /dev/sda2
mkfs ext2 /dev/sda3
EOF
qemu-img create -f raw test2.img 1520M
./run virt-resize
On Fri, Dec 12, 2014 at 04:41:44PM +, Richard W.M. Jones wrote:
On Fri, Dec 12, 2014 at 03:03:22PM +0800, Hu Tao wrote:
Hi,
This is v3 series to add support to btrfs qgroup related commands, inclduing
quota commands, and two leftover of subvolume commands.
I really need to look
On Thu, Dec 11, 2014 at 02:45:18PM +, Richard W.M. Jones wrote:
On Thu, Dec 11, 2014 at 02:11:29PM +0800, Hu Tao wrote:
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 104
+++--
1 file changed, 56 insertions
btrfs_subvolume_show shows the detailed information of a subvolume or
snapshot.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 194 +++
generator/actions.ml | 25 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 220
btrfs_qgroup_destroy destroys a qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 18 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 52 insertions(+), 1 deletion(-)
diff --git a/daemon
btrfs_quota_enable enables or disables quota for btrfs filesystems.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 36
generator/actions.ml | 25 +
src/MAX_PROC_NR | 2 +-
3 files changed, 62 insertions
btrfs_quota_rescan trashs all qgroup numbers and scans the metadata
again with the current config.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 21 +
src/MAX_PROC_NR | 2 +-
3 files
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 106 +++--
1 file changed, 58 insertions(+), 48 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 754fdcd..514ba37 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
)
- fprintf (stderr,...) - reply_with_error()
v2:
- add tests for new APIs
- combine btrfs_quota_enable and btrfs_quota_disable
- following APIs changed to operate on Mountable_or_Path:
btrfs_subvolume_get_default, btrfs_quota_enable, btrfs_quota_rescan.
Hu Tao (11):
daemon: btrfs
btrfs_subvolume_get_default is for getting the default subvolume of
a btrfs filesystem.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 39 +++
generator/actions.ml | 18 ++
src/MAX_PROC_NR | 2 +-
3 files changed
btrfs_qgroup_show shows all qgroups on a btrfs filesystem.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 89
generator/actions.ml | 19 +++
generator/structs.ml | 10
btrfs_qgroup_remove removes a qgroup from its parent qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 34 ++
generator/actions.ml | 19 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 54 insertions(+), 1 deletion
btrfs_qgroup_assign adds a qgroup to a parent qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 34 ++
generator/actions.ml | 19 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 54 insertions(+), 1 deletion(-)
diff
btrfs_qgroup_create creates a new qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 17 +
src/MAX_PROC_NR | 2 +-
3 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/daemon
btrfs_qgroup_limit limits the size of a qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 35 +++
generator/actions.ml | 22 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 58 insertions(+), 1 deletion(-)
diff
btrfs_quota_rescan trashs all qgroup numbers and scans the metadata
again with the current config.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 21 +
src/MAX_PROC_NR | 2 +-
3 files
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 104 +++--
1 file changed, 56 insertions(+), 48 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 754fdcd..2e9859d 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
btrfs_qgroup_assign adds a qgroup to a parent qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 34 ++
generator/actions.ml | 19 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 54 insertions(+), 1 deletion(-)
diff
btrfs_qgroup_destroy destroys a qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 18 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 52 insertions(+), 1 deletion(-)
diff --git a/daemon
btrfs_qgroup_remove removes a qgroup from its parent qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 34 ++
generator/actions.ml | 19 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 54 insertions(+), 1 deletion
btrfs_qgroup_limit limits the size of a qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 35 +++
generator/actions.ml | 22 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 58 insertions(+), 1 deletion(-)
diff
btrfs_subvolume_get_default is for getting the default subvolume of
a btrfs filesystem.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 39 +++
generator/actions.ml | 18 ++
src/MAX_PROC_NR | 2 +-
3 files changed
on Mountable_or_Path:
btrfs_subvolume_get_default, btrfs_quota_enable, btrfs_quota_rescan.
Hu Tao (11):
daemon: btrfs: add helper functions mount and umount
New API: btrfs_subvolume_get_default
New API: btrfs_subvolume_show
New API: btrfs_quota_enable
New API: btrfs_quota_rescan
New API
btrfs_quota_enable enables or disables quota for btrfs filesystems.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 36
generator/actions.ml | 25 +
src/MAX_PROC_NR | 2 +-
3 files changed, 62 insertions
btrfs_subvolume_show shows the detailed information of a subvolume or
snapshot.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 194 +++
generator/actions.ml | 25 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 220
On Fri, Dec 05, 2014 at 12:30:52PM +, Richard W.M. Jones wrote:
On Tue, Dec 02, 2014 at 05:33:32PM +0800, Hu Tao wrote:
btrfs_subvolume_show shows the detailed information of a subvolume or
snapshot.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 185
On Fri, Dec 05, 2014 at 12:33:08PM +, Richard W.M. Jones wrote:
On Tue, Dec 02, 2014 at 05:33:34PM +0800, Hu Tao wrote:
btrfs_quota_disable disables quota for subvolumes.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 31
Because of the size of an extended partition reported by Linux is always 1024
bytes, so it will always fail to copy to an extended partition.
This patch fixes this problem by copying to the offset of an extended
partition in the destination disk.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
On Fri, Dec 05, 2014 at 12:27:06PM +, Richard W.M. Jones wrote:
On Tue, Dec 02, 2014 at 05:33:31PM +0800, Hu Tao wrote:
+ ADD_ARG (argv, i, str_btrfs);
+ ADD_ARG (argv, i, subvolume);
+ ADD_ARG (argv, i, get-default);
+ ADD_ARG (argv, i, fs_buf);
+ ADD_ARG (argv, i, NULL
btrfs_qgroup_show shows all qgroups on a btrfs filesystem.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 88
generator/actions.ml | 10
generator/structs.ml | 10
btrfs_qgroup_remove removes a qgroup from its parent qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 33 +
generator/actions.ml | 9 +
src/MAX_PROC_NR | 2 +-
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
fish/fish.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fish/fish.c b/fish/fish.c
index 0432774..20511f8 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -641,10 +641,12 @@ shell_script (void)
#define FISH fs
+#ifdef
btrfs_quota_enable enables quota for subvolumes.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 31 +++
generator/actions.ml | 9 +
src/MAX_PROC_NR | 2 +-
3 files changed, 41 insertions(+), 1 deletion(-)
diff --git a/daemon
btrfs_qgroup_limit limits the size of a qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 10 ++
src/MAX_PROC_NR | 2 +-
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/daemon
btrfs_qgroup_create creates a new qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 32
generator/actions.ml | 9 +
src/MAX_PROC_NR | 2 +-
3 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b
btrfs_quota_disable disables quota for subvolumes.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 31 +++
generator/actions.ml | 9 +
src/MAX_PROC_NR | 2 +-
3 files changed, 41 insertions(+), 1 deletion(-)
diff --git a/daemon
Hi,
This series adds support to btrfs qgroup related commands, inclduing
quota commands, and two leftover of subvolume commands.
Regards,
Hu
Hu Tao (8):
New API: btrfs_subvolume_get_default
New API: btrfs_subvolume_show
New API: btrfs_quota_enable
New API: btrfs_quota_disable
New API
btrfs_quota_rescan trashs all qgroup numbers and scans the metadata
again with the current config.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 31 +++
generator/actions.ml | 9 +
src/MAX_PROC_NR | 2 +-
3 files changed, 41
btrfs_subvolume_get_default is for getting the default subvolume of
a btrfs filesystem.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 38 ++
generator/actions.ml | 9 +
src/MAX_PROC_NR | 2 +-
3 files changed, 48
btrfs_subvolume_show shows the detailed information of a subvolume or
snapshot.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 185 +++
generator/actions.ml | 9 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 195
On Mon, Dec 01, 2014 at 09:44:41AM +, Richard W.M. Jones wrote:
On Mon, Dec 01, 2014 at 02:42:54PM +0800, Hu Tao wrote:
On Mon, Dec 01, 2014 at 10:25:51AM +0800, Hu Tao wrote:
On Fri, Nov 28, 2014 at 03:00:39PM +0100, Pino Toscano wrote:
On Friday 28 November 2014 17:55:51 Hu Tao
This patch lets guestfish show command synopsis if the syntax of command issued
by user is wrong, rather than telling user that the number of parameters is
wrong.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
changes in v2:
- fix the error of ' error: control reaches end of non-void function
.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
fish/cmds-gperf.h | 1 +
generator/fish.ml | 48 +---
2 files changed, 26 insertions(+), 23 deletions(-)
diff --git a/fish/cmds-gperf.h b/fish/cmds-gperf.h
index 74db69d..bcb3b5d 100644
--- a/fish
On Fri, Nov 28, 2014 at 03:00:39PM +0100, Pino Toscano wrote:
On Friday 28 November 2014 17:55:51 Hu Tao wrote:
This patch lets guestfish show command synopsis if the syntax of command
issued
by user is wrong, rather than telling user that the number of parameters is
wrong.
The idea
On Mon, Dec 01, 2014 at 10:25:51AM +0800, Hu Tao wrote:
On Fri, Nov 28, 2014 at 03:00:39PM +0100, Pino Toscano wrote:
On Friday 28 November 2014 17:55:51 Hu Tao wrote:
This patch lets guestfish show command synopsis if the syntax of command
issued
by user is wrong, rather than telling
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/uuids.c| 19 +++
sysprep/sysprep_operation_fs_uuids.ml | 2 --
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/daemon/uuids.c b/daemon/uuids.c
index 672f3db..431d867 100644
--- a/daemon
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/uuids.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/daemon/uuids.c b/daemon/uuids.c
index 431d867..06b33e9 100644
--- a/daemon/uuids.c
+++ b/daemon/uuids.c
@@ -110,6 +110,11 @@ do_set_uuid (const char *device, const char *uuid
Because get-uuid looks more like a counterpart to set-uuid, and is
more likely come to mind if one knows set-uuid.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
generator/actions.ml | 1 +
1 file changed, 1 insertion(+)
diff --git a/generator/actions.ml b/generator/actions.ml
index a35fe50
This patch lets guestfish show command synopsis if the syntax of command issued
by user is wrong, rather than telling user that the number of parameters is
wrong.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
fish/cmds-gperf.h | 1 +
generator/fish.ml | 33 -
2
Parameter `qgroupid' is for adding the created snapshot to a qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 8 +++-
generator/actions.ml | 9 ++---
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 9b48a5d
Parameter `qgroupid' is for adding the created subvolume to a qgroup.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 10 +-
generator/actions.ml | 17 ++---
2 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
'once_had_no_optargs = true' for btrfs_subvolume_snapshot and
btrfs_subvolume_create
- improved documents for btrfs_subvolume_snapshot and
btrfs_subvolume_create
- coding style change (patch 5)
- add analyze_line (patch 5)
- rebase
Hu Tao (5):
btrfs: add optional parameter `ro
Parameter `ro' is for creating readonly btrfs snapshot.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 8 +++-
generator/actions.ml | 13 -
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 7a4d43d
btrfs_subvolume_show shows the detailed information of a subvolume or
snapshot.
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/btrfs.c | 184 +++
generator/actions.ml | 9 +++
src/MAX_PROC_NR | 2 +-
3 files changed, 194
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/guestfsd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index 3616f3a..181754d 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -220,7 +220,7 @@ main (int argc, char *argv
Signed-off-by: Hu Tao hu...@cn.fujitsu.com
---
daemon/available.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon/available.c b/daemon/available.c
index 7a8ede0..54c6b9b 100644
--- a/daemon/available.c
+++ b/daemon/available.c
@@ -166,7 +166,7 @@ do_filesystem_available
1 - 100 of 184 matches
Mail list logo