EPERM is returned if windows was hibernated

edge.strict_endians
cha0smaster 2005-10-01 00:42:11 +00:00
parent 75668af15e
commit f292546aed
1 changed files with 7 additions and 4 deletions

View File

@ -181,11 +181,14 @@ ntfs_volume * utils_mount_volume (const char *device, unsigned long flags, BOOL
err = errno;
Eprintf("Couldn't mount device '%s': %s\n", device,
strerror(err));
if (err == EOPNOTSUPP)
Eprintf("Windows was either hibernated or did not "
"shut down properly. Try to mount "
"volume in windows, shut down and try "
if (err == EPERM)
Eprintf("Windows was hibernated. Try to mount volume "
"in windows, shut down and try "
"again.\n");
if (err == EOPNOTSUPP)
Eprintf("Windows did not shut down properly. Try to "
"mount volume in windows, shut down "
"and try again.\n");
return NULL;
}