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>
Showing
- drivers/md/dm-crypt.c 1 addition, 1 deletiondrivers/md/dm-crypt.c
- drivers/md/dm-delay.c 1 addition, 1 deletiondrivers/md/dm-delay.c
- drivers/md/dm-flakey.c 1 addition, 1 deletiondrivers/md/dm-flakey.c
- drivers/md/dm-ioctl.c 4 additions, 1 deletiondrivers/md/dm-ioctl.c
- drivers/md/dm-linear.c 1 addition, 1 deletiondrivers/md/dm-linear.c
- drivers/md/dm-mpath.c 1 addition, 1 deletiondrivers/md/dm-mpath.c
- drivers/md/dm-raid.c 1 addition, 1 deletiondrivers/md/dm-raid.c
- drivers/md/dm-raid1.c 1 addition, 1 deletiondrivers/md/dm-raid1.c
- drivers/md/dm-snap.c 3 additions, 3 deletionsdrivers/md/dm-snap.c
- drivers/md/dm-stripe.c 2 additions, 2 deletionsdrivers/md/dm-stripe.c
- drivers/md/dm-thin.c 7 additions, 2 deletionsdrivers/md/dm-thin.c
- drivers/md/dm-verity.c 1 addition, 1 deletiondrivers/md/dm-verity.c
- drivers/md/dm.h 5 additions, 0 deletionsdrivers/md/dm.h
- include/linux/device-mapper.h 1 addition, 1 deletioninclude/linux/device-mapper.h
- include/linux/dm-ioctl.h 5 additions, 3 deletionsinclude/linux/dm-ioctl.h
Loading
Please register or sign in to comment