diff options
author | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 10:08:16 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 10:08:16 -0400 |
commit | 1f4e0ff07980820977f45d6a5dbc81d3bb9ce4d3 (patch) | |
tree | 5b5a159add010d09ea58ca12fd079b16f05333b8 /drivers/md/dm-verity.c | |
parent | e49e582965b3694f07a106adc83ddb44aa4f0890 (diff) |
dm thin: commit before gathering status
Commit outstanding metadata before returning the status for a dm thin
pool so that the numbers reported are as up-to-date as possible.
The commit is not performed if the device is suspended or if
the DM_NOFLUSH_FLAG is supplied by userspace and passed to the target
through a new 'status_flags' parameter in the target's dm_status_fn.
The userspace dmsetup tool will support the --noflush flag with the
'dmsetup status' and 'dmsetup wait' commands from version 1.02.76
onwards.
Tested-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-verity.c')
-rw-r--r-- | drivers/md/dm-verity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-verity.c b/drivers/md/dm-verity.c index fa365d39b61..254d19268ad 100644 --- a/drivers/md/dm-verity.c +++ b/drivers/md/dm-verity.c | |||
@@ -515,7 +515,7 @@ static int verity_map(struct dm_target *ti, struct bio *bio, | |||
515 | * Status: V (valid) or C (corruption found) | 515 | * Status: V (valid) or C (corruption found) |
516 | */ | 516 | */ |
517 | static int verity_status(struct dm_target *ti, status_type_t type, | 517 | static int verity_status(struct dm_target *ti, status_type_t type, |
518 | char *result, unsigned maxlen) | 518 | unsigned status_flags, char *result, unsigned maxlen) |
519 | { | 519 | { |
520 | struct dm_verity *v = ti->private; | 520 | struct dm_verity *v = ti->private; |
521 | unsigned sz = 0; | 521 | unsigned sz = 0; |