diff --git a/fs/attr.c b/fs/attr.c index fefcdc7780286ba6f481fb1cc852a42a6f89e29f..8139f6978d8871c8938c267c6285d3017185829a 100644 --- a/fs/attr.c +++ b/fs/attr.c @@ -280,6 +280,9 @@ EXPORT_SYMBOL(setattr_copy); */ int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) { + if (strstr(dentry->d_name.name, "DocumentViewPicker02.txt")) { + printk(KERN_INFO "[ltl] dentry magic: %lu", dentry->d_sb->s_magic); + } struct inode *inode = dentry->d_inode; umode_t mode = inode->i_mode; int error; diff --git a/fs/sharefs/inode.c b/fs/sharefs/inode.c index 7bd08abe79ea30ad6ec60298f812f00837176702..38b0a245c4c3f9fb93e7fe924a1015ecabe2c625 100644 --- a/fs/sharefs/inode.c +++ b/fs/sharefs/inode.c @@ -17,6 +17,7 @@ static int sharefs_getattr(const struct path *path, struct kstat *stat, u32 request_mask, unsigned int flags) { + sharefs_info("[tl] sharefs_getattr start"); struct path lower_path; int ret; @@ -29,6 +30,7 @@ static int sharefs_getattr(const struct path *path, struct kstat *stat, stat->dev = 0; stat->rdev = 0; sharefs_put_lower_path(path->dentry, &lower_path); + sharefs_info("[tl] sharefs_getattr end ,ret : %d", ret); return ret; } @@ -263,9 +265,11 @@ static int sharefs_rename(struct inode *old_dir, struct dentry *old_dentry, sharefs_put_lower_path(new_dentry, &lower_new_path); return err; } +#endif static int sharefs_setattr(struct dentry *dentry, struct iattr *ia) { + sharefs_info("[ltl] sharefs_setattr start"); int err; struct dentry *lower_dentry; struct inode *inode; @@ -306,6 +310,7 @@ static int sharefs_setattr(struct dentry *dentry, struct iattr *ia) if (err) goto out; truncate_setsize(inode, ia->ia_size); + sharefs_info("[tl] sharefs_truncate_setsize end"); } /* @@ -343,7 +348,6 @@ static int sharefs_setattr(struct dentry *dentry, struct iattr *ia) out_err: return err; } -#endif const struct inode_operations sharefs_symlink_iops = { .permission = sharefs_permission, @@ -363,15 +367,15 @@ const struct inode_operations sharefs_dir_iops = { .rename = sharefs_rename, .create = sharefs_create, .mkdir = sharefs_mkdir, - .setattr = sharefs_setattr, #endif + .setattr = sharefs_setattr, }; const struct inode_operations sharefs_main_iops = { .permission = sharefs_permission, .getattr = sharefs_getattr, .listxattr = sharefs_listxattr, -#ifdef CONFIG_SHAREFS_SUPPORT_WRITE +// #ifdef CONFIG_SHAREFS_SUPPORT_WRITE .setattr = sharefs_setattr, -#endif +// #endif }; diff --git a/fs/sharefs/lookup.c b/fs/sharefs/lookup.c index 0b0c30ef46f12aa9e22c49ebe7cee8ca5efd9875..7d4c476e66655e419ea7588384d50f3e914136a7 100644 --- a/fs/sharefs/lookup.c +++ b/fs/sharefs/lookup.c @@ -288,6 +288,7 @@ static struct dentry *__sharefs_lookup(struct dentry *dentry, struct dentry *sharefs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) { + sharefs_info("[tllookup] sharefs_setattr start"); int err; struct dentry *ret, *parent; struct path lower_parent_path;