Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[GSoC 2008] fs-utils: File system access utilities
Hi everyone !
A brief status report of my Google Summer of Code project: fs-utils
(http://netbsd-soc.sourceforge.net/projects/fs-utils/).
Most of the must-have components have been written but still need some more
testing, clean up and optimisation.
The following programs have been implemented : cat, chflags, chmod, chown,
cp, diff, du, ln, ls, mkdir, mkfifo, mknod, mv, rm, rmdir, touch.
An interactive tool has also been written. He allows the use of the commands
described above and adds commands like cd, umask and pwd, so as to browse the
image as if it was mounted.
A short example of what is possible:
$ ./fsconsole ffs ~/rump_ffs.img
/home/stacktic/rump_ffs.img(ffs):/ # ls -l
drw-rw-r-- 2 stacktic wsrc 512 Jul 2 12:57 CVS
-rw-rw-r-- 1 stacktic wsrc 112 Aug 6 2007 Makefile
-rw-rw-r-- 1 stacktic wsrc 527 May 31 21:28 Makefile.rump
-rw-rw-r-- 1 stacktic wsrc 1034 Aug 16 2007 README.dirs
-rw-rw-r-- 1 root wheel 453 Sep 10 2007 TODO
drw-rw-r-- 5 stacktic wsrc 512 Jul 2 12:54 fs
drw-rw-r-- 4 stacktic wsrc 512 Jul 2 12:54 include
drw-rw-r-- 5 stacktic wsrc 512 Jul 2 13:21 librump
/home/stacktic/rump_ffs.img(ffs):/ # cat Makefile
# $NetBSD: Makefile,v 1.1 2007/08/05 22:28:00 pooka Exp $
#
SUBDIR= librump .WAIT fs
.include <bsd.subdir.mk>
/home/stacktic/rump_ffs.img(ffs):/ # chown stacktic:wsrc TODO
/home/stacktic/rump_ffs.img(ffs):/ # ls -l
drw-rw-r-- 2 stacktic wsrc 512 Jul 2 12:57 CVS
-rw-rw-r-- 1 stacktic wsrc 112 Aug 6 2007 Makefile
-rw-rw-r-- 1 stacktic wsrc 527 May 31 21:28 Makefile.rump
-rw-rw-r-- 1 stacktic wsrc 1034 Aug 16 2007 README.dirs
-rw-rw-r-- 1 stacktic wsrc 453 Sep 10 2007 TODO
drw-rw-r-- 5 stacktic wsrc 512 Jul 2 12:54 fs
drw-rw-r-- 4 stacktic wsrc 512 Jul 2 12:54 include
drw-rw-r-- 5 stacktic wsrc 512 Jul 2 13:21 librump
/home/stacktic/rump_ffs.img(ffs):/ # chmod 600 Makefile
/home/stacktic/rump_ffs.img(ffs):/ # ls -l Makefile
-rw------- 1 stacktic wsrc 112 Aug 6 2007 Makefile
/home/stacktic/rump_ffs.img(ffs):/ # cd librump/rumpkern
/home/stacktic/rump_ffs.img(ffs):/librump/rumpkern # pwd
/librump/rumpkern
/home/stacktic/rump_ffs.img(ffs):/librump/rumpkern # du -hs
4.8M .
/home/stacktic/rump_ffs.img(ffs):/librump/rumpkern # cd
/home/stacktic/rump_ffs.img(ffs):/ # du -hs
5.4M .
Of course each command can be called separately.
Since the programs only run on NetBSD, I am thinking about trying
to make them run under non-NetBSD operating systems for the second term.
And of course adding new functionnalities :)
The first version of the source code can be fetched from
http://netbsd-soc.sourceforge.net/projects/fs-utils/fs-utils_20080709.tar.gz
and is also available on the cvs.
Arnaud Ysmal
Home |
Main Index |
Thread Index |
Old Index