mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user