1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add dmsetup 'wipe_table' to replace table with one that uses error target.

This commit is contained in:
Alasdair Kergon 2012-01-18 18:52:02 +00:00
parent 26a3549fa0
commit 8a35706cb1
3 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.68 -
==================================
Add dmsetup wipe_table to replace table with one that uses error target.
Add 'blkdevname' and 'blkdevs_used' field to dmsetup info -c -o.
Add 'blkdevname' option to dmsetup ls --tree to see block device names.
Add '-o options' to dmsetup deps and ls to select device name type on output.

View File

@ -69,6 +69,9 @@ dmsetup \- low level logical volume management
.RB [ \-\-table
.RI < table >| table_file ]
.br
.B dmsetup wipe_table
.I device_name
.br
.B dmsetup remove
.RB [ \-f | \-\-force ]
.RB [ \-\-retry ]
@ -355,6 +358,15 @@ Loads <table> or table_file into the inactive table slot for device_name.
If neither is supplied, reads a table from standard input.
.br
.HP
.B wipe_table
.I device_name
.br
Wait for any I/O in-flight through the device to complete, then
replace the table with a new table that fails any new I/O
sent to the device. If successful, this should release any devices
held open by the device's table(s).
.br
.HP
.B message
.I device_name sector message
.br

View File

@ -1,6 +1,6 @@
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
* Copyright (C) 2004-2012 Red Hat, Inc. All rights reserved.
* Copyright (C) 2005-2007 NEC Corporation
*
* This file is part of the device-mapper userspace tools.
@ -2870,6 +2870,7 @@ static struct command _commands[] = {
{"load", "<device> [<table_file>]", 0, 2, 0, _load},
{"clear", "<device>", 0, -1, 1, _clear},
{"reload", "<device> [<table_file>]", 0, 2, 0, _load},
{"wipe_table", "<device>", 0, -1, 1, _error_device},
{"rename", "<device> [--setuuid] <new_name_or_uuid>", 1, 2, 0, _rename},
{"message", "<device> <sector> <message>", 2, -1, 0, _message},
{"ls", "[--target <target_type>] [--exec <command>] [-o options] [--tree]", 0, 0, 0, _ls},