Lines Matching refs:st
184 dosfs_rstat(fs_volume *_vol, fs_vnode *_node, struct stat *st)
193 st->st_dev = vol->id;
194 st->st_ino = node->vnid;
195 st->st_mode = make_mode(vol, node);
197 st->st_nlink = 1;
198 st->st_uid = 0;
199 st->st_gid = 0;
200 st->st_size = node->st_size;
201 st->st_blocks = (node->st_size + 511) / 512;
202 st->st_blksize = 0x10000; /* this value was chosen arbitrarily */
203 st->st_atim.tv_sec = st->st_mtim.tv_sec = st->st_ctim.tv_sec
205 st->st_crtim.tv_sec = node->st_crtim;
206 st->st_atim.tv_nsec = st->st_mtim.tv_nsec = st->st_ctim.tv_nsec
207 = st->st_crtim.tv_nsec = 0;
214 dosfs_wstat(fs_volume *_vol, fs_vnode *_node, const struct stat *st,
237 DPRINTF(0, ("setting file mode to %o\n", st->st_mode));
238 if (st->st_mode & S_IWUSR)
246 DPRINTF(0, ("setting file size to %" B_PRIdOFF "\n", st->st_size));
250 } else if (st->st_size > MAX_FILE_SIZE) {
254 uint32 clusters = (st->st_size + vol->bytes_per_sector
261 node->st_size = st->st_size;
274 node->st_time = st->st_mtime;
282 node->st_crtim = st->st_crtime;