search for: do_btrfs_check

Displaying 8 results from an estimated 8 matches for "do_btrfs_check".

2015 Jan 07
2
Re: [PATCH 2/5] New API: btrfs_check
...anged, 39 insertions(+), 1 deletion(-) > > diff --git a/daemon/btrfs.c b/daemon/btrfs.c > index 79de539..de20bc3 100644 > --- a/daemon/btrfs.c > +++ b/daemon/btrfs.c > @@ -1375,3 +1375,27 @@ do_btrfs_scrub (const char *path) > > return 0; > } > + > +int > +do_btrfs_check (const char *device) > +{ > + const size_t MAX_ARGS = 64; > + const char *argv[MAX_ARGS]; > + size_t i = 0; > + CLEANUP_FREE char *err = NULL; > + CLEANUP_FREE char *out = NULL; > + int r; > + > + ADD_ARG (argv, i, str_btrfs); > + ADD_ARG (argv, i, "check&...
2015 Jan 13
1
Re: [PATCH 2/5] New API: btrfs_check
...> > index 79de539..de20bc3 100644 > > > --- a/daemon/btrfs.c > > > +++ b/daemon/btrfs.c > > > @@ -1375,3 +1375,27 @@ do_btrfs_scrub (const char *path) > > > > > > return 0; > > > } > > > + > > > +int > > > +do_btrfs_check (const char *device) > > > +{ > > > + const size_t MAX_ARGS = 64; > > > + const char *argv[MAX_ARGS]; > > > + size_t i = 0; > > > + CLEANUP_FREE char *err = NULL; > > > + CLEANUP_FREE char *out = NULL; > > > + int r; > > &gt...
2015 Jan 05
2
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...erator/actions.ml | 15 +++++++++++++++ > src/MAX_PROC_NR | 2 +- > 3 files changed, 48 insertions(+), 1 deletion(-) > > diff --git a/daemon/btrfs.c b/daemon/btrfs.c > index de20bc3..6c74892 100644 > --- a/daemon/btrfs.c > +++ b/daemon/btrfs.c > @@ -1399,3 +1399,35 @@ do_btrfs_check (const char *device) > > return 0; > } > + > +char * > +do_btrfs_filesystem_get_label (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 cha...
2014 Dec 26
10
[PATCH 0/5] btrfs: add API for btrfs filesystem, check and scrub
Hi, There is one problem: btrfs_filesystem_set_label just doesnt work, giving error message: libguestfs: error: btrfs_filesystem_set_label: /: ERROR: unable to set label Bad address I'm almost sure the patch has no problem, but can't figure out what's the cause. So patch 5 is only for review. Other APIs have no problem. Regards, Hu Hu Tao (5): New API: btrfs_scrub New API:
2014 Dec 26
0
[PATCH 3/5] New API: btrfs_filesystem_get_label
...32 ++++++++++++++++++++++++++++++++ generator/actions.ml | 15 +++++++++++++++ src/MAX_PROC_NR | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index de20bc3..6c74892 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@ -1399,3 +1399,35 @@ do_btrfs_check (const char *device) return 0; } + +char * +do_btrfs_filesystem_get_label (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; + char *out; + int r; + + path_buf = sysro...
2015 Jan 06
0
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...gt; > src/MAX_PROC_NR | 2 +- > > 3 files changed, 48 insertions(+), 1 deletion(-) > > > > diff --git a/daemon/btrfs.c b/daemon/btrfs.c > > index de20bc3..6c74892 100644 > > --- a/daemon/btrfs.c > > +++ b/daemon/btrfs.c > > @@ -1399,3 +1399,35 @@ do_btrfs_check (const char *device) > > > > return 0; > > } > > + > > +char * > > +do_btrfs_filesystem_get_label (const char *path) > > +{ > > + const size_t MAX_ARGS = 64; > > + const char *argv[MAX_ARGS]; > > + size_t i = 0; > > + CLEAN...
2014 Dec 26
0
[PATCH 2/5] New API: btrfs_check
...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 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@ -1375,3 +1375,27 @@ do_btrfs_scrub (const char *path) return 0; } + +int +do_btrfs_check (const char *device) +{ + const size_t MAX_ARGS = 64; + const char *argv[MAX_ARGS]; + size_t i = 0; + CLEANUP_FREE char *err = NULL; + CLEANUP_FREE char *out = NULL; + int r; + + ADD_ARG (argv, i, str_btrfs); + ADD_ARG (argv, i, "check"); + ADD_ARG (argv, i, device); + ADD_ARG (...
2015 Jan 12
0
Re: [PATCH 2/5] New API: btrfs_check
...diff --git a/daemon/btrfs.c b/daemon/btrfs.c > > index 79de539..de20bc3 100644 > > --- a/daemon/btrfs.c > > +++ b/daemon/btrfs.c > > @@ -1375,3 +1375,27 @@ do_btrfs_scrub (const char *path) > > > > return 0; > > } > > + > > +int > > +do_btrfs_check (const char *device) > > +{ > > + const size_t MAX_ARGS = 64; > > + const char *argv[MAX_ARGS]; > > + size_t i = 0; > > + CLEANUP_FREE char *err = NULL; > > + CLEANUP_FREE char *out = NULL; > > + int r; > > + > > + ADD_ARG (argv, i, str_b...