On Fri, 29 Jul 2005, Yura Pakhuchiy wrote:
> On Fri, 2005-07-29 at 16:58 +0200, Szakacsits Szabolcs wrote:
> > On Fri, 29 Jul 2005, Yura Pakhuchiy wrote:
> >
> > > - if (ntfs_check_logfile(na) && ntfs_is_logfile_clean(na))
> > > - ret = 0;
> > > - else {
> > > - ret = -1;
> > > - err = EIO;
> > > - }
> > > + if (!ntfs_check_logfile(na) || !ntfs_is_logfile_clean(na))
> > > + err = EOPNOTSUPP;
> >
> > I don't like this very much. Now users would get the message that mounting
> > NTFS is not supported and that's pretty bogus. EIO covered the issue much
> > more better.
>
> I don't think so. We should return EIO on real errors (eg. damaged
> volume), but unclean logfile it's not damaged volume, it's simply case
> that we don't support yet. So I think that EOPNOTSUPP is absolutely
> correct here.
You converted all ntfs_check_logfile() and ntfs_is_logfile_clean() error
cases to EOPNOTSUPP. Damaged volumes too.
Szaka
|