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
ty den 20.09.2005 Klokka 14:20 (+0200) skreiv Miklos Szeredi:
> > > ATTR_MTIME is _only_ set in utime[s], which all filesystems want to
> > > honor.
> >
> > ATTR_MTIME is set in both utimes and truncate.
>
> Not in truncate:
>
> int do_truncate(struct dentry *dentry, loff_t length)
> {
> /* ... */
>
> newattrs.ia_size = length;
> newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
>
> down(&dentry->d_inode->i_sem);
> err = notify_change(dentry, &newattrs);
> up(&dentry->d_inode->i_sem);
> return err;
> }

Oops. You're right. That is a recent change that I missed...

Cheers,
Trond

-
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 14:31    [W:0.030 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site