3 BIN = newfs_sufs fuse_sufs dumpfs_sufs
4 CFLAGS += -fno-strict-aliasing
9 rm -f ${BIN} *.core 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
20 doas ./fuse_sufs -d -f -o allow_other -o default_permissions mp
23 doas chown $$(id -u) mp
24 echo 'Hello World' > mp/file
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}