> > 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; } > As for ATTR_CTIME, that is also set in chown(), chmod(). It too can be > optimised away for those operations, assuming that CIFS servers > automatically update ctime. Yes, I realized this shortly after posting. 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/
- Follow-Ups:
- Re: ctime set by truncate even if NOCMTIME requested
- From: Trond Myklebust <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- References:
- ctime set by truncate even if NOCMTIME requested
- From: Steve French <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- From: Trond Myklebust <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- From: Steve French <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- From: Trond Myklebust <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- From: Trond Myklebust <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- From: Miklos Szeredi <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- From: Miklos Szeredi <[email protected]>
- Re: ctime set by truncate even if NOCMTIME requested
- From: Trond Myklebust <[email protected]>
- ctime set by truncate even if NOCMTIME requested
- Prev by Date: Re: [PATCH] cpuset semaphore depth check optimize
- Next by Date: Re: ctime set by truncate even if NOCMTIME requested
- Previous by thread: Re: ctime set by truncate even if NOCMTIME requested
- Next by thread: Re: ctime set by truncate even if NOCMTIME requested
- Index(es):