]> git.baikalelectronics.ru Git - kernel.git/commit
dm log: remove incorrect field from userspace table output
authorJonathan Brassow <jbrassow@redhat.com>
Fri, 4 Sep 2009 19:40:30 +0000 (20:40 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 4 Sep 2009 19:40:30 +0000 (20:40 +0100)
commit4cdbf55aad23b84778385db62f1abdb381008ccb
treec605b02cb6ad5c4b68d4066eca4aac6c4747e839
parent3d25cad0c434b8be09756e6948784482c1dc23b7
dm log: remove incorrect field from userspace table output

The output of 'dmsetup table' includes an internal field that should not
be there.  This patch removes it.  To make the fix simpler, we first
reorder a constructor argument

The 'device size' argument is generated internally.  Currently it is
placed as the last space-separated word of the constructor string.
However, we need to use a version of the string without this word, so we
move it to the beginning instead so it is trivial to skip past it.

We keep a copy of the arguments passed to userspace for creating a log,
just in case we need to resend them.  These are the same arguments that
are desired in the STATUSTYPE_TABLE request, except for one.  When
creating the userspace log, the userspace daemon must know the size of
the mirror, so that is added to the arguments given in the constructor
table.  We were printing this extra argument out as well, which is a
mistake.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-log-userspace-base.c