• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/9p/

Lines Matching defs:stat

31 #include <linux/stat.h>
180 * v9fs_blank_wstat - helper function to setup a 9P stat structure
710 /* Not in cached mode. No need to populate inode with stat */
1104 * @stat: metadata structure to populate
1110 struct kstat *stat)
1121 return simple_getattr(mnt, dentry, stat);
1132 generic_fillattr(dentry->d_inode, stat);
1141 struct kstat *stat)
1152 return simple_getattr(mnt, dentry, stat);
1158 /* Ask for all the fields in stat structure. Server will return
1167 generic_fillattr(dentry->d_inode, stat);
1169 stat->blksize = st->st_blksize;
1287 * @stat: Plan 9 metadata (mistat) structure
1294 v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode,
1304 inode->i_atime.tv_sec = stat->atime;
1305 inode->i_mtime.tv_sec = stat->mtime;
1306 inode->i_ctime.tv_sec = stat->mtime;
1312 inode->i_uid = stat->n_uid;
1313 inode->i_gid = stat->n_gid;
1316 if (v9fs_proto_dotu(v9ses) && (stat->extension[0] != '\0')) {
1322 * for non NULL stat->extension
1324 strncpy(ext, stat->extension, sizeof(ext));
1331 inode->i_mode = p9mode2unixmode(v9ses, stat->mode);
1337 strncpy(ext, stat->extension, sizeof(ext));
1349 stat->extension);
1356 i_size_write(inode, stat->length);
1363 * v9fs_stat2inode_dotl - populate an inode structure with stat info
1364 * @stat: stat structure
1371 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode)
1374 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) {
1375 inode->i_atime.tv_sec = stat->st_atime_sec;
1376 inode->i_atime.tv_nsec = stat->st_atime_nsec;
1377 inode->i_mtime.tv_sec = stat->st_mtime_sec;
1378 inode->i_mtime.tv_nsec = stat->st_mtime_nsec;
1379 inode->i_ctime.tv_sec = stat->st_ctime_sec;
1380 inode->i_ctime.tv_nsec = stat->st_ctime_nsec;
1381 inode->i_uid = stat->st_uid;
1382 inode->i_gid = stat->st_gid;
1383 inode->i_nlink = stat->st_nlink;
1384 inode->i_mode = stat->st_mode;
1385 inode->i_rdev = new_decode_dev(stat->st_rdev);
1390 i_size_write(inode, stat->st_size);
1391 inode->i_blocks = stat->st_blocks;
1393 if (stat->st_result_mask & P9_STATS_ATIME) {
1394 inode->i_atime.tv_sec = stat->st_atime_sec;
1395 inode->i_atime.tv_nsec = stat->st_atime_nsec;
1397 if (stat->st_result_mask & P9_STATS_MTIME) {
1398 inode->i_mtime.tv_sec = stat->st_mtime_sec;
1399 inode->i_mtime.tv_nsec = stat->st_mtime_nsec;
1401 if (stat->st_result_mask & P9_STATS_CTIME) {
1402 inode->i_ctime.tv_sec = stat->st_ctime_sec;
1403 inode->i_ctime.tv_nsec = stat->st_ctime_nsec;
1405 if (stat->st_result_mask & P9_STATS_UID)
1406 inode->i_uid = stat->st_uid;
1407 if (stat->st_result_mask & P9_STATS_GID)
1408 inode->i_gid = stat->st_gid;
1409 if (stat->st_result_mask & P9_STATS_NLINK)
1410 inode->i_nlink = stat->st_nlink;
1411 if (stat->st_result_mask & P9_STATS_MODE) {
1412 inode->i_mode = stat->st_mode;
1418 if (stat->st_result_mask & P9_STATS_RDEV)
1419 inode->i_rdev = new_decode_dev(stat->st_rdev);
1420 if (stat->st_result_mask & P9_STATS_SIZE)
1421 i_size_write(inode, stat->st_size);
1422 if (stat->st_result_mask & P9_STATS_BLOCKS)
1423 inode->i_blocks = stat->st_blocks;
1425 if (stat->st_result_mask & P9_STATS_GEN)
1426 inode->i_generation = stat->st_gen;
1658 /* Not in cached mode. No need to populate inode with stat */
1775 /* Get the latest stat info from server. */
1791 /* Caching disabled. No need to get upto date stat info.
1924 * Not in cached mode. No need to populate inode with stat.