summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-03 20:39:24 +0000
committerMiles Bader <miles@gnu.org>1995-04-03 20:39:24 +0000
commita0e6ca34acc79b64f05afe7294d7c6c21076f925 (patch)
tree5800f931cf6c4441cea52110e8d38b9eee599959 /trans
parentecd72120faf62684489ae08cc7e23d2775c79f36 (diff)
Return more useful values for the st_blksize and st_fstype fields in a stat.
Diffstat (limited to 'trans')
-rw-r--r--trans/null.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/trans/null.c b/trans/null.c
index 38d0053e..9982481c 100644
--- a/trans/null.c
+++ b/trans/null.c
@@ -101,7 +101,9 @@ int trivfs_cntl_nporttypes = 1;
void
trivfs_modify_stat (struct stat *st)
{
- st->st_blksize = 1;
+ st->st_blksize = vm_page_size;
+
+ st->st_fstype = FSTYPE_DEV;
st->st_size = 0;
st->st_blocks = 0;