Remove building with NOCRYPTO option
[minix.git] / minix / fs / isofs / stadir.c
blob926b98c25e62b442bf34e8335c68d7e83d1b9de5
1 #include "inc.h"
2 #include <sys/stat.h>
3 #include <sys/statvfs.h>
5 int fs_stat(ino_t ino_nr, struct stat *statbuf)
7 struct inode *rip;
9 if ((rip = get_inode(ino_nr)) == NULL)
10 return EINVAL;
12 *statbuf = rip->i_stat;
14 return OK;
17 int fs_statvfs(struct statvfs *st)
19 st->f_flag = ST_NOTRUNC;
20 st->f_bsize = v_pri.logical_block_size_l;
21 st->f_frsize = st->f_bsize;
22 st->f_iosize = st->f_bsize;
23 st->f_blocks = v_pri.volume_space_size_l;
24 st->f_namemax = NAME_MAX;
26 return OK;