search for: btrfs_inspect_internal_rootid

Displaying 4 results from an estimated 4 matches for "btrfs_inspect_internal_rootid".

2015 Feb 21
0
[PATCH v2 1/4] New API: btrfs_inspect_internal_rootid
...l | 15 +++++++++++++++ src/MAX_PROC_NR | 2 +- 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 6b93973..e1f617d 100644 --- a/daemon/btrfs.c +++ b/daemon/btrfs.c @@ -1929,3 +1929,41 @@ error: free (ret); return NULL; } + +int64_t +do_btrfs_inspect_internal_rootid (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; + int64_t ret; + + path_buf = sysroot_path (path); + if (path_buf == NULL) { +...
2015 Feb 21
5
[PATCH v2 0/4] btrfs: add support to btrfs inspect-internal
This series adds new APIs to support btrfs inspect-internal. v2: - use full name of btrfs command as inspect-internal Hu Tao (4): New API: btrfs_inspect_internal_rootid New API: btrfs_inspect_internal_subvolid_resolve New API: btrfs_inspect_internal_inode_resolve New API: btrfs_inspect_internal_logical_resolve daemon/btrfs.c | 161 +++++++++++++++++++++++++++++++++++++++++++++++++++ generator/actions.ml | 56 ++++++++++++++++++ src/MAX_PROC_NR...
2015 Jan 27
0
Re: [PATCH 00/16] btrfs: add support to btrfs scrub, balance, rescue and inspect
...e > > supported for a long time, then we can use them. > > Sorry for confusing! 'btrfs inspect' is short for 'btrfs inspect-internal'. > I'll resend these patches with the complete command name. How about keep the API names(a.k.a btrfs_inspect_rootid rather than btrfs_inspect_internal_rootid) for convinence? The only problem is it may cause confusing. Regards, Hu > > Regards, > Hu > > > > > Thanks, > > Rich. > > > > -- > > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > > Read my programming an...
2015 Jan 27
2
Re: [PATCH 00/16] btrfs: add support to btrfs scrub, balance, rescue and inspect
On Wed, Jan 21, 2015 at 01:58:02PM +0000, 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 currently dump the status into a string. Generally