]> 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)
commita693a3cfbfe8093856daa99acd0fe79132342d91
tree85f53a32606d8082cc26f13cd681acdccf2cfa5b
parent8d558d708ac7028555343d7c77c3fa7aa5714f99
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 8fd7b6d ("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