xfs
[Top] [All Lists]

dmsetup arguments

To: xfs@xxxxxxxxxxx
Subject: dmsetup arguments
From: alexander.tsvetkov@xxxxxxxxxx
Date: Fri, 14 Jun 2013 12:51:25 +0400
Delivered-to: xfs@xxxxxxxxxxx
Organization: Oracle Corporation
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Oracle/3.1.11-2.0.1.el6_1 Lightning/1.0b2 OracleBeehiveExtension/1.0.0.2-OracleInternal ObetStats/CATLAF_1360077495220-530802236 Thunderbird/3.1.11
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







<Prev in Thread] Current Thread [Next in Thread>