[dm-crypt] What's the best way to check if device is already deactivated ?

Aaron Lewis the.warl0ck.1989 at gmail.com
Fri Jan 7 11:33:42 CET 2011


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


More information about the dm-crypt mailing list