Fix mapping removal if device disappeared but node still exists.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@420 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2011-01-29 15:55:27 +00:00
parent f0bb160f71
commit 0a905364fa
4 changed files with 25 additions and 4 deletions

View File

@@ -260,7 +260,7 @@ int device_ready(struct crypt_device *cd, const char *device, int mode)
/* Try to read first sector */
s = read_blockwise(devfd, buf, sizeof(buf));
if (s < 0 || s != sizeof(buf)) {
log_err(cd, _("Cannot read device %s.\n"), device);
log_verbose(cd, _("Cannot read device %s.\n"), device);
r = 0;
}