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)
commit610bba8b9372597967aefdc8d90661d2ab248802
tree85f53a32606d8082cc26f13cd681acdccf2cfa5b
parentf722406faae2d073cc1d01063d1123c35425939e
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 24347e9 ("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