Re: ctime set by truncate even if NOCMTIME requested

From: Miklos Szeredi
Date: Tue Sep 20 2005 - 05:07:42 EST


> > However if you know the cases where time is set implicitly by the
> > server, why can't you simply optimise away the ATTR_CTIME and/or
> > ATTR_MTIME?
>
> How? By checking whether ATTR_SIZE is also set? Yes, that would work
> for truncate(), but it's rather more ugly than the proposed check for
> IS_NOCMTIME.

I have to correct myself: it seems, the check is not needed. Ctime is
never set explicitly. So filesystem can simply ignore ATTR_CTIME, and
do the right thing without it.

ATTR_MTIME is _only_ set in utime[s], which all filesystems want to
honor.

So I think the only thing CIFS needs is simply to ignore ATTR_CTIME.

Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/