DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] What's the best way to check if device is already deactivated ?
@ 2011-01-07 10:33 Aaron Lewis
  0 siblings, 0 replies; only message in thread
From: Aaron Lewis @ 2011-01-07 10:33 UTC (permalink / raw)
  To: dm-crypt

Hi,
	Planning to post a patch within a shell script , how about simply check
if /dev/mapper/DEV_NAME exist is well enough ?

	if [ -e /dev/mapper/$target ];then
		...
	else
		...
	fi

	Thanks.

-- 
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com )
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-07 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07 10:33 [dm-crypt] What's the best way to check if device is already deactivated ? Aaron Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox