search for: btrfs_filesystem_get_label

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

2015 Jan 07
1
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...ml > > > +++ b/generator/actions.ml > > > @@ -12281,6 +12281,21 @@ corrupt data." }; > > > longdesc = "\ > > > Check or repair a btrfs filesystem offline." }; > > > > > > + { defaults with > > > + name = "btrfs_filesystem_get_label"; > > > + style = RString "label", [Pathname "path"], []; > > > + proc_nr = Some 437; > > > + optional = Some "btrfs"; camel_name = "BTRFSFilesystemGetLabel"; > > > + tests = [ > > > + InitPar...
2015 Jan 05
2
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...8 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 = sysroot_path (path); > + if (pa...
2014 Dec 26
0
[PATCH 3/5] New API: btrfs_filesystem_get_label
...++++++++++ 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 = sysroot_path (path); + if (path_buf == NULL) { + reply_with_perror ("malloc&...
2015 Jan 06
0
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...it 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; > > + > >...
2015 Jan 05
3
Re: [PATCH 5/5] New API: btrfs_filesystem_set_label
...t;"; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""]; > + ["mount"; "/dev/sda1"; "/"]; > + ["btrfs_filesystem_set_label"; "/"; "newlabel"]; > + ["btrfs_filesystem_get_label"; "/"]], "newlabel"), []; > + ]; This test bit would be good to be added to the tests of set_label, just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs is available. Thanks, -- Pino Toscano
2014 Dec 26
10
[PATCH 0/5] btrfs: add API for btrfs filesystem, check and scrub
...ilesystem_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: btrfs_check New API: btrfs_filesystem_get_label New API: add btrfs_filesystem_defragment New API: btrfs_filesystem_set_label daemon/btrfs.c | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++ generator/actions.ml | 82 +++++++++++++++++++++++++++ src/MAX_PROC_NR | 2 +- 3 files changed, 236 insertions(+), 1 deletion(-)...
2014 Dec 26
0
[PATCH 5/5] New API: btrfs_filesystem_set_label
...ot;"; ""; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""]; + ["mount"; "/dev/sda1"; "/"]; + ["btrfs_filesystem_set_label"; "/"; "newlabel"]; + ["btrfs_filesystem_get_label"; "/"]], "newlabel"), []; + ]; + shortdesc = "set a btrfs filesystem's label"; + longdesc = "\ +Set a btrfs filesystem's label." }; + ] (* Non-API meta-commands available only in guestfish. diff --git a/src/MAX_PROC_NR b/src/MAX_PROC...
2015 Jan 16
0
Re: [PATCH 5/5] New API: btrfs_filesystem_set_label
...;NOARG"; ""; "NOARG"; "NOARG"; ""; ""]; > > + ["mount"; "/dev/sda1"; "/"]; > > + ["btrfs_filesystem_set_label"; "/"; "newlabel"]; > > + ["btrfs_filesystem_get_label"; "/"]], "newlabel"), []; > > + ]; > > This test bit would be good to be added to the tests of set_label, > just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs > is available. I found that all btrfs APIs are in optgroup &quo...