From 1e3572c3e2952c39c5375e406dbe7b8752af3d5e Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Sat, 9 Sep 2006 23:23:40 -0500 Subject: [PATCH] Cleanup readme formatting for 80 width and add usage Signed-off-by: Brandon Philips --- README | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) diff --git a/README b/README index 5a0cb5f..64b96c7 100644 --- a/README +++ b/README @@ -1,21 +1,33 @@ This is a FUSE filesystem that implements support for chunkfs over ext2 -filesystem, via the standard libext2fs library supplied with -every copy of e2fsprogs. +filesystem, via the standard libext2fs library supplied with every copy of +e2fsprogs. -Naming scheme: +Usage +===== +A quick example of getting two disks up and mounting them with ChunkFS. + +dd if=/dev/zero of=disk1 seek=1024 count=1 bs=1K +dd if=/dev/zero of=disk2 seek=1024 count=1 bs=1K +mkfs.ext2 disk1 +mkfs.ext2 disk2 +mkdir mnt +./chunkfs -o chunks="`pwd`/disk1:`pwd`/disk2" mnt + +Naming scheme +============= 1. Cross-chunk links - created when directory cannot grow because of lack of space in the current chunk - In this case, a directory with name .-cont is created -in the chunk, where space is available. Here parent-inode-number is the inode -number of the parent directory in which the directory link is to be created. In -this way a unique name for that directory is created. + In this case, a directory with name .-cont is created + in the chunk, where space is available. Here parent-inode-number is the + inode number of the parent directory in which the directory link is to be + created. In this way a unique name for that directory is created. 2. Cross-chunk writes -When file out grows the current chunk, a continuation inode is created in a chunk -where space is available. The file then expands in this inode as any other file. -The file is named as: .-cont. Here file-inode-number is the inode -number of the file which has outgrown the current chunk. - + When file out grows the current chunk, a continuation inode is created in a + chunk where space is available. The file then expands in this inode as any + other file. The file is named as: .-cont. Here + file-inode-number is the inode number of the file which has outgrown the + current chunk. -- 1.4.4.1