]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: fix metadata dev resize detection
authorAlasdair G Kergon <agk@redhat.com>
Sun, 19 May 2013 17:57:50 +0000 (18:57 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sun, 19 May 2013 17:57:50 +0000 (18:57 +0100)
commitd58ae4bd4ca7b1f085c562a2a081270eec2d787b
tree85f53a32606d8082cc26f13cd681acdccf2cfa5b
parent9dd09e6de2d6786a50b589a77aeec22d46f3a4ab
dm thin: fix metadata dev resize detection

Fix detection of the need to resize the dm thin metadata device.

The code incorrectly tried to extend the metadata device when it
didn't need to due to a merging error with patch e2f11fd ("dm thin:
detect metadata device resizing").

  device-mapper: transaction manager: couldn't open metadata space map
  device-mapper: thin metadata: tm_open_with_sm failed
  device-mapper: thin: aborting transaction failed
  device-mapper: thin: switching pool to failure mode

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c