lkml.org 
[lkml]   [2005]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: ctime set by truncate even if NOCMTIME requested
From
Date
> > 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-20 12:09    [W:0.043 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site