Lines Matching refs:stat
193 status_t ReadStat(struct stat *stat);
194 status_t WriteStat(const struct stat *stat,
354 struct stat stat;
356 && vnode->ops->read_stat(volume, vnode, &stat) == B_OK) {
357 fFileInode = stat.st_ino;
421 fStatus = currentVnode.ops->read_stat(volume, ¤tVnode, &stat);
423 TRACE_ALWAYS("failed to stat attribute file: %s\n", strerror(fStatus));
437 size_t readLength = stat.st_size;
1078 AttributeEntry::ReadStat(struct stat *stat)
1080 stat->st_dev = fParent->VolumeID();
1081 stat->st_ino = (ino_t)this;
1082 stat->st_nlink = 1;
1083 stat->st_blksize = 512;
1084 stat->st_uid = 1;
1085 stat->st_gid = 1;
1086 stat->st_size = fEntry->size;
1087 stat->st_mode = S_ATTR | 0x0777;
1088 stat->st_type = fEntry->type;
1089 stat->st_atime = stat->st_mtime = stat->st_crtime = time(NULL);
1090 stat->st_blocks = (fEntry->size + stat->st_blksize - 1) / stat->st_blksize;
1096 AttributeEntry::WriteStat(const struct stat *stat, uint32 statMask)
1326 overlay_read_stat(fs_volume *volume, fs_vnode *vnode, struct stat *stat)
1328 OVERLAY_CALL(read_stat, stat)
1333 overlay_write_stat(fs_volume *volume, fs_vnode *vnode, const struct stat *stat,
1336 OVERLAY_CALL(write_stat, stat, statMask)
1571 struct stat *stat)
1573 return ((AttributeEntry *)cookie)->ReadStat(stat);
1579 const struct stat *stat, int statMask)
1581 return ((AttributeEntry *)cookie)->WriteStat(stat, statMask);
1876 overlay_read_index_stat(fs_volume *volume, const char *name, struct stat *stat)
1878 OVERLAY_VOLUME_CALL(read_index_stat, name, stat)