[dm-devel] [PATCH v4 1/1] add display of map information in JSON format

2016-05-18 Thread Todd Gill
The patch adds these commands: multipathd show maps json multipathd show map $map json Each command will output the requested map(s) in JSON. For the "show maps json" command, the patch pre-allocates INITIAL_REPLY_LEN * PRINT_JSON_MULTIPLIER(5). The JSON text is about 5x the size of the "show

[dm-devel] [PATCH v4 0/1] add option to output JSON for multipathd command

2016-05-18 Thread Todd Gill
Hi, I had earlier sent an email to dm-devel proposing we add a feature in multipathd to output multipath map topology in JSON format. This patch contains to the code for that feature. Having an option for the CLI to output in JSON would allow higher level applications to more easily

Re: [dm-devel] bcache gets stuck flushing writeback cache when used in combination with LUKS/dm-crypt and non-default bucket size

2016-05-18 Thread James Johnston
> On Sun, 8 May 2016, James Johnston wrote: > > > Hi, > > > > [1.] One line summary of the problem: > > > > bcache gets stuck flushing writeback cache when used in combination with > > LUKS/dm-crypt and non-default bucket size > > > > [2.] Full description of the problem/report: > > > > I've run

Re: [dm-devel] [PATCH v4 03/21] fs: Allow sysfs and cgroupfs to share super blocks between user namespaces

2016-05-18 Thread Eric W. Biederman
Seth Forshee writes: > On Wed, May 18, 2016 at 10:45:31AM -0500, Eric W. Biederman wrote: >> > But if we do that it violates some of the assumptions of the patch to >> > rework MNT_NODEV on your testing branch (and also those behind patch 2 >> > in this series).

Re: [dm-devel] [PATCH v3 1/1] add display of map information in JSON format

2016-05-18 Thread Gris Ge
On Fri, May 13, 2016 at 10:39:00AM -0400, Todd Gill wrote: > Just found trivial issue: > +#define PRINT_JSON_MAJOR_VERSION 0 > +#define PRINT_JSON_MINOR_VERSION 1 > +#define PRINT_JSON_START_VERSION " \"major_version \": %d,\n" \ > + " \"minor_version \":