Example #1
0
static int fuse_getattr(struct vfsmount *mnt, struct dentry *entry,
			struct kstat *stat)
{
	struct _inode *inode = d_get_inode(entry);
	int err = fuse_revalidate(entry);
	if (!err)
		generic_fillattr(inode, stat);

	return err;
}
Example #2
0
File: dir.c Project: 1x23/unifi-gpl
static int fuse_getattr(struct vfsmount *mnt, struct dentry *entry,
			struct kstat *stat)
{
	struct inode *inode = entry->d_inode;
	int err = fuse_revalidate(entry);
	if (!err)
		/* FIXME: may want specialized function because of
		   st_blksize on block devices on 2.6.19+ */
		generic_fillattr(inode, stat);

	return err;
}