From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 9 May 1996 18:22:44 -0400 From: Nickolay Saukh nms@nns.ru Subject: Small patch for kfs to show free space on disk Topicbox-Message-UUID: 4642a510-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19960509222244.6XNS3IHBcQrZxwTsPjDAA9ezRHnWWU4MzJiDF6Fz54o@z> Here is small patch for /sys/src/cmd/disk/kfs/con.c which allows to get the following numbers from kfs number of free blocks file system size in blocks block size Don't forget rebuild kernel (9pcdisk for PCs). ---------- cut here to destroy your CRT ---------- 417a "free", cmd_free, "", . 408a void cmd_free(void) { Iobuf *p; Superb *s; p = getbuf(cur_fs->dev, superaddr(cur_fs->dev), Bread); s = (Superb*) p->iobuf; cprint("%ld %ld %d\n", s->tfree, s->fsize, RBUFSIZE); putbuf(p); } . ---------- cut here to destroy your CRT ----------