dmsetup arguments

alexander.tsvetkov at oracle.com alexander.tsvetkov at oracle.com
Fri Jun 14 03:51:25 CDT 2013


Hi,

XFStests suite generic/311 test fails on command: "sbin/dmsetup load 
flakey-test --table "0 150000001 flakey /dev/sdc2 0 0 180 1 drop_writes" 
with error: "device-mapper: reload ioctl on flakey-test failed: Invalid 
argument", so as I understand the command format provided to ioctl is 
incorrect here. Kernel logs has message:

"Jun 13 16:47:15 tests kernel: device-mapper: table: 252:3: flakey: 
dm-flakey: Invalid argument count
Jun 13 16:47:15 tests kernel: device-mapper: ioctl: error adding target 
to table"

Looking into the source code of package LVM2.02.98 which devmapper 
library belongs to I find argument "drop_writes" used in the command 
only in documentation doc/kernel/flakey.txt:

"Optional feature parameters:
   If no feature parameters are present, during the periods of
   unreliability, all I/O returns errors.

   drop_writes:
         All write I/O is silently ignored.
         Read I/O is handled correctly."

This argument feature was added in the patch from "27 Jun 2011":

"[dm-devel] [PATCH 0/9] dm flakey: add features
------------------------------------------------------------------------

    * /From/: Mike Snitzer <snitzer redhat com>
    * /To/: <dm-devel redhat com>
    * /Cc/: Mike Snitzer <snitzer redhat com>
    * /Subject/: [dm-devel] [PATCH 0/9] dm flakey: add features
    * /Date/: Mon, 27 Jun 2011 15:53:34 -0400

------------------------------------------------------------------------

Add "drop_writes", "corrupt_bio_byte" and "debug" features to the
flakey target."

https://www.redhat.com/archives/dm-devel/2011-June/msg00081.html

but was patch modifications included in library of LVM2.02.98 package? 
Or may be it was already removed from it after?

Thanks,
Alexander Tsvetkov







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20130614/30c91b79/attachment.html>


More information about the xfs mailing list