don't check logfile for readonly mounts

(Logical change 1.673)
edge.strict_endians
void!yura 2005-02-01 18:26:17 +00:00
parent d5eac44ab9
commit 51a83b1699
1 changed files with 5 additions and 2 deletions

View File

@ -953,8 +953,11 @@ ntfs_volume *ntfs_device_mount(struct ntfs_device *dev, unsigned long rwflag)
if (ntfs_inode_close(ni))
Dperror("Failed to close inode, leaking memory");
/* Check logfile. */
if (ntfs_volume_check_logfile(vol))
/*
* Check logfile. We care about not clean logfile only during
* read-write mount, so for read-only mount don't check logfile at all.
*/
if (!(rwflag & MS_RDONLY) && ntfs_volume_check_logfile(vol))
goto error_exit;
return vol;