Lines Matching refs:stbuf

418 	struct stat stbuf;
433 allowed = (ntfs_get_owner_mode(scx,ni2,&stbuf) >= 0)
434 && (stbuf.st_uid == scx->uid);
654 struct stat *stbuf)
668 stbuf->st_size = strlen(target);
670 stbuf->st_size = ntfs_bad_reparse_lth;
671 stbuf->st_blocks = (ni->allocated_size + 511) >> 9;
672 stbuf->st_mode = S_IFLNK;
682 struct stat *stbuf)
691 stbuf->st_mode = S_IFSOCK;
694 stbuf->st_mode = S_IFIFO;
697 stbuf->st_mode = S_IFCHR;
699 stbuf->st_rdev = rdev;
702 stbuf->st_mode = S_IFBLK;
704 stbuf->st_rdev = rdev;
707 stbuf->st_size = ntfs_bad_reparse_lth;
708 stbuf->st_mode = S_IFLNK;
717 stbuf->st_size = ntfs_bad_reparse_lth;
718 stbuf->st_mode = S_IFLNK;
728 static void apply_umask(struct stat *stbuf)
730 switch (stbuf->st_mode & S_IFMT) {
732 stbuf->st_mode &= ~ctx->fmask;
735 stbuf->st_mode &= ~ctx->dmask;
738 stbuf->st_mode = (stbuf->st_mode & S_IFMT) | 0777;
748 ntfs_inode *ni, struct stat *stbuf)
754 memset(stbuf, 0, sizeof(struct stat));
756 stbuf->st_nlink = le16_to_cpu(ni->mrec->link_count);
759 stbuf->st_nlink = ntfs_dir_link_cnt(ni);
767 res = CALL_REPARSE_PLUGIN(ni, getattr, stbuf);
769 apply_umask(stbuf);
771 stbuf->st_size = ntfs_bad_reparse_lth;
772 stbuf->st_blocks =
774 stbuf->st_mode = S_IFLNK;
790 stbuf->st_size = strlen(target);
792 stbuf->st_size = ntfs_bad_reparse_lth;
793 stbuf->st_blocks =
795 stbuf->st_nlink =
797 stbuf->st_mode = S_IFLNK;
806 stbuf->st_mode = S_IFDIR | (0777 & ~ctx->dmask);
818 stbuf->st_size = ni->data_size;
819 stbuf->st_blocks = ni->allocated_size >> 9;
821 stbuf->st_nlink = 1; /* Make find(1) work */
825 stbuf->st_mode = S_IFREG;
826 stbuf->st_size = ni->data_size;
836 stbuf->st_size = ((ni->data_size + 511) & ~511) + 2;
842 stbuf->st_blocks = (ni->allocated_size + 511) >> 9;
846 stbuf->st_ino = ni->mft_no;
853 stbuf->st_mode = S_IFIFO;
856 stbuf->st_mode = S_IFSOCK;
885 stbuf->st_mode = S_IFBLK;
886 stbuf->st_rdev = makedev(le64_to_cpu(
894 stbuf->st_mode = S_IFCHR;
895 stbuf->st_rdev = makedev(le64_to_cpu(
920 stbuf->st_mode = S_IFLNK;
921 stbuf->st_size = len;
927 stbuf->st_mode |= (0777 & ~ctx->fmask);
933 if (ntfs_get_owner_mode(scx,ni,stbuf) < 0)
936 stbuf->st_uid = ctx->uid;
937 stbuf->st_gid = ctx->gid;
939 if (S_ISLNK(stbuf->st_mode))
940 stbuf->st_mode |= 0777;
942 stbuf->st_ino = ni->mft_no;
944 stbuf->st_atimespec = ntfs2timespec(ni->last_access_time);
945 stbuf->st_ctimespec = ntfs2timespec(ni->last_mft_change_time);
946 stbuf->st_mtimespec = ntfs2timespec(ni->last_data_change_time);
948 stbuf->st_atim = ntfs2timespec(ni->last_access_time);
949 stbuf->st_ctim = ntfs2timespec(ni->last_mft_change_time);
950 stbuf->st_mtim = ntfs2timespec(ni->last_data_change_time);
956 stbuf->st_atime = ts.tv_sec;
957 stbuf->st_atimensec = ts.tv_nsec;
959 stbuf->st_ctime = ts.tv_sec;
960 stbuf->st_ctimensec = ts.tv_nsec;
962 stbuf->st_mtime = ts.tv_sec;
963 stbuf->st_mtimensec = ts.tv_nsec;
971 stbuf->st_atime = ts.tv_sec;
973 stbuf->st_ctime = ts.tv_sec;
975 stbuf->st_mtime = ts.tv_sec;
987 struct stat stbuf;
995 res = ntfs_fuse_getstat(&security, ni, &stbuf);
1000 fuse_reply_attr(req, &stbuf, ATTR_TIMEOUT);
1863 mode_t mode, struct stat *stbuf)
1889 res = ntfs_fuse_getstat(scx, ni, stbuf);
1893 res = ntfs_fuse_getstat(scx, ni, stbuf);
1902 uid_t uid, gid_t gid, struct stat *stbuf)
1932 res = ntfs_fuse_getstat(scx, ni, stbuf);
1935 res = ntfs_fuse_getstat(scx, ni, stbuf);
1944 uid_t uid, gid_t gid, mode_t mode, struct stat *stbuf)
1972 res = ntfs_fuse_getstat(scx, ni, stbuf);
1975 res = ntfs_fuse_getstat(scx, ni, stbuf);
1985 off_t size, BOOL chkwrite, struct stat *stbuf)
1988 struct stat *stbuf)
2057 res = ntfs_fuse_getstat(scx, ni, stbuf);
2070 struct stat *stin, struct stat *stbuf, int to_set)
2134 res = ntfs_fuse_getstat(scx, ni, stbuf);
2143 struct stat *stin, struct stat *stbuf)
2205 res = ntfs_fuse_getstat(scx, ni, stbuf);
2216 struct stat stbuf;
2233 res = ntfs_fuse_getstat(&security, ni, &stbuf);
2247 attr->st_mode & 07777, &stbuf);
2251 (gid_t)-1, &stbuf);
2255 attr->st_gid, &stbuf);
2259 attr->st_gid, &stbuf);
2264 &stbuf);
2269 &stbuf);
2273 attr->st_gid,attr->st_mode, &stbuf);
2282 !fi, &stbuf);
2287 res = ntfs_fuse_utimens(&security, ino, attr, &stbuf, to_set);
2289 res = ntfs_fuse_utime(&security, ino, attr, &stbuf);
2295 fuse_reply_attr(req, &stbuf, ATTR_TIMEOUT);