Displaying 14 results from an estimated 14 matches for "do_btrfs_quota_en".
2014 Dec 05
2
Re: [PATCH 4/8] New API: btrfs_quota_disable
...enerator/actions.ml | 9 +++++++++
> src/MAX_PROC_NR | 2 +-
> 3 files changed, 41 insertions(+), 1 deletion(-)
>
> diff --git a/daemon/btrfs.c b/daemon/btrfs.c
> index 31dd806..5fcb85b 100644
> --- a/daemon/btrfs.c
> +++ b/daemon/btrfs.c
> @@ -1026,3 +1026,34 @@ int do_btrfs_quota_enable (const char *path)
>
> return 0;
> }
> +
> +int do_btrfs_quota_disable (const char *path)
> +{
> + const size_t MAX_ARGS = 64;
> + const char *argv[MAX_ARGS];
> + size_t i = 0;
> + CLEANUP_FREE char *path_buf = NULL;
> + CLEANUP_FREE char *err = NULL;...
2015 Jun 16
1
[PATCH] btrfs: remove unused 'out' variables
...an be easily added
back.
---
daemon/btrfs.c | 60 ++++++++++++++++++++--------------------------------------
1 file changed, 20 insertions(+), 40 deletions(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 39392f7..f02acb1 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -1049,7 +1049,6 @@ do_btrfs_quota_enable (const mountable_t *fs, int enable)
size_t i = 0;
char *fs_buf = NULL;
CLEANUP_FREE char *err = NULL;
- CLEANUP_FREE char *out = NULL;
int r = -1;
fs_buf = mount (fs);
@@ -1065,7 +1064,7 @@ do_btrfs_quota_enable (const mountable_t *fs, int enable)
ADD_ARG (argv, i, fs_buf);...
2014 Dec 02
0
[PATCH 3/8] New API: btrfs_quota_enable
...AX_PROC_NR | 2 +-
3 files changed, 41 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 2cfb364..31dd806 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -995,3 +995,34 @@ char **do_btrfs_subvolume_show (const char *subvolume)
return ret.argv;
}
+
+int do_btrfs_quota_enable (const char *path)
+{
+ const size_t MAX_ARGS = 64;
+ const char *argv[MAX_ARGS];
+ size_t i = 0;
+ CLEANUP_FREE char *path_buf = NULL;
+ CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *out = NULL;
+ int r;
+
+ path_buf = sysroot_path (path);
+ if (path_buf == NULL) {
+ reply_wi...
2014 Dec 02
0
[PATCH 4/8] New API: btrfs_quota_disable
...| 31 +++++++++++++++++++++++++++++++
generator/actions.ml | 9 +++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 41 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 31dd806..5fcb85b 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -1026,3 +1026,34 @@ int do_btrfs_quota_enable (const char *path)
return 0;
}
+
+int do_btrfs_quota_disable (const char *path)
+{
+ const size_t MAX_ARGS = 64;
+ const char *argv[MAX_ARGS];
+ size_t i = 0;
+ CLEANUP_FREE char *path_buf = NULL;
+ CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *out = NULL;
+ int r;
+
+ path_...
2014 Dec 09
0
Re: [PATCH 4/8] New API: btrfs_quota_disable
...> src/MAX_PROC_NR | 2 +-
> > 3 files changed, 41 insertions(+), 1 deletion(-)
> >
> > diff --git a/daemon/btrfs.c b/daemon/btrfs.c
> > index 31dd806..5fcb85b 100644
> > --- a/daemon/btrfs.c
> > +++ b/daemon/btrfs.c
> > @@ -1026,3 +1026,34 @@ int do_btrfs_quota_enable (const char *path)
> >
> > return 0;
> > }
> > +
> > +int do_btrfs_quota_disable (const char *path)
> > +{
> > + const size_t MAX_ARGS = 64;
> > + const char *argv[MAX_ARGS];
> > + size_t i = 0;
> > + CLEANUP_FREE char *path_...
2014 Dec 02
21
[PATCH 0/8] btrfs support part2: qgroup commands
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
New API: btrfs_qgroup_limit
New API: btrfs_qgroup_create
New API:
2014 Dec 12
15
[PATCH v3 00/11] btrfs support part2: qgroup/quota commands
Hi,
This is v3 series to add support to btrfs qgroup related commands, inclduing
quota commands, and two leftover of subvolume commands.
Regards,
Hu
changes:
v3:
- don't intialize fs_buf (patch 1)
- check the return value of sysroot_path (patch 1)
- check fs_buf rather than fs (patch 1)
- fprintf (stderr,...) -> reply_with_error()
v2:
- add tests for new APIs
- combine
2014 Dec 11
14
[PATCH v2 00/11] btrfs support part2: qgroup/quota commands
Hi,
This is v2 series to add support to btrfs qgroup related commands, inclduing
quota commands, and two leftover of subvolume commands.
Regards,
Hu
changes:
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):
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...018,7 @@ do_btrfs_subvolume_show (const char *subvolume)
return NULL;
}
- ADD_ARG (argv, i, str_btrfs);
+ ADD_ARG (argv, i, "btrfs");
ADD_ARG (argv, i, "subvolume");
ADD_ARG (argv, i, "show");
ADD_ARG (argv, i, subvolume_buf);
@@ -1164,7 +1157,7 @@ do_btrfs_quota_enable (const mountable_t *fs, int enable)
if (fs_buf == NULL)
goto error;
- ADD_ARG (argv, i, str_btrfs);
+ ADD_ARG (argv, i, "btrfs");
ADD_ARG (argv, i, "quota");
if (enable)
ADD_ARG (argv, i, "enable");
@@ -1199,7 +1192,7 @@ do_btrfs_quota_rescan...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...021,7 @@ do_btrfs_subvolume_show (const char *subvolume)
return NULL;
}
- ADD_ARG (argv, i, str_btrfs);
+ ADD_ARG (argv, i, "btrfs");
ADD_ARG (argv, i, "subvolume");
ADD_ARG (argv, i, "show");
ADD_ARG (argv, i, subvolume_buf);
@@ -1164,7 +1160,7 @@ do_btrfs_quota_enable (const mountable_t *fs, int enable)
if (fs_buf == NULL)
goto error;
- ADD_ARG (argv, i, str_btrfs);
+ ADD_ARG (argv, i, "btrfs");
ADD_ARG (argv, i, "quota");
if (enable)
ADD_ARG (argv, i, "enable");
@@ -1199,7 +1195,7 @@ do_btrfs_quota_rescan...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...s_len] = '\0';
+ memcpy (ss + ss_len, key, strlen (key));
+ ss_len += strlen (key);
+ ss[ss_len] = '\0';
- p = analyze_line (p, &key, &value, ':');
+ p = analyze_line (p, &key, &value, ':');
}
if (ss) {
@@ -1169,7 +1169,7 @@ do_btrfs_quota_enable (const mountable_t *fs, int enable)
goto error;
}
-error:
+ error:
if (fs_buf && umount (fs_buf, fs) != 0)
return -1;
return r;
@@ -1201,7 +1201,7 @@ do_btrfs_quota_rescan (const mountable_t *fs)
goto error;
}
-error:
+ error:
if (fs_buf && umou...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste.
---
align/scan.c | 35 ++++++++++---------
cat/cat.c | 39 +++++++++++----------
cat/filesystems.c | 69 +++++++++++++++++++-------------------
cat/log.c | 35 ++++++++++---------
cat/ls.c | 61 +++++++++++++++++----------------
df/main.c | 43 ++++++++++++------------
diff/diff.c | 67
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option
‘./guestfsd --print-external-commands’