Skip to content

Commit

Permalink
dm delay: document that offsets are specified in sectors
Browse files Browse the repository at this point in the history
Only delay params are mentioned in delay.txt.
Mention offsets just like documents for linear and flakey do.

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
kusumi authored and snitm committed Oct 31, 2015
1 parent e213f33 commit f49e869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/device-mapper/delay.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Parameters:
<device> <offset> <delay> [<write_device> <write_offset> <write_delay>]

With separate write parameters, the first set is only used for reads.
Offsets are specified in sectors.
Delays are specified in milliseconds.

Example scripts
Expand Down
1 change: 1 addition & 0 deletions drivers/md/dm-delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ static void flush_expired_bios(struct work_struct *work)
* <device> <offset> <delay> [<write_device> <write_offset> <write_delay>]
*
* With separate write parameters, the first set is only used for reads.
* Offsets are specified in sectors.
* Delays are specified in milliseconds.
*/
static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)
Expand Down

0 comments on commit f49e869

Please sign in to comment.