> > 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|