Blob


1 .POSIX:
3 BIN = newfs_sufs fuse_sufs dumpfs_sufs
4 CFLAGS += -fno-strict-aliasing
6 all: ${BIN}
8 clean:
9 rm -f ${BIN} *.core test.img
11 newfs: newfs_sufs
12 rm -f test.img
13 dd if=/dev/zero of=test.img bs=1K count=64
14 ./newfs_sufs -n -b 512 test.img
15 xxd -s 65536 test.img | head
16 xxd -s $$((261 * 32768)) test.img | head
18 mount: fuse_sufs
19 mkdir -p mp
20 doas ./fuse_sufs -d -f -o allow_other -o default_permissions mp
22 test:
23 doas chown $$(id -u) mp
24 echo 'Hello World' > mp/file
25 cat mp/file
26 rm mp/file
28 dump: dumpfs_sufs
29 ./dumpfs_sufs test.img
31 fuse_sufs: fuse_sufs.c sufs.h
32 ${CC} -o $@ fuse_sufs.c ${CFLAGS} -lfuse
34 newfs_sufs: newfs_sufs.c sufs.h
35 ${CC} -o $@ newfs_sufs.c ${CFLAGS}
37 dumpfs_sufs: dumpfs_sufs.c sufs.h
38 ${CC} -o $@ dumpfs_sufs.c ${CFLAGS}