X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=README.adoc;h=80e5840e102e81725d4e00c04d39105b57cc1346;hb=75c064119fb06302a671e7234f16c6f7d522a566;hp=00ce11b9ed4a6414f35624391431c93acb1e71b6;hpb=31e7c2454c1ef879b92a6fd4aa8289d377c82467;p=rrq%2Ffusefile.git diff --git a/README.adoc b/README.adoc index 00ce11b..80e5840 100644 --- a/README.adoc +++ b/README.adoc @@ -1,61 +1,27 @@ -fusefile -======== +# fusefile -This project implements a "fuse" device to mount as a single file that -is a concatenation of fragments of one or more files. The fused file -allows overwriting the parts files, but not changing their sizes, and -only for parts files that are writable upon first access. +This project implements a "fuse" device to mount a concatenation of +fragments of one or more files as a single file. -FUSE file mount for combining file fragments. - -== SYNOPSIS - *fusefile* [_fuse options_] *mountpoint* _filename/from-to_ ... +The __fused file__ allows writing to fragments (without changing their +sizes); of course only for writable fragment files. The fused file may +be set up with an __overlay file__ to capture changes instead of +writing the underlying fragment files. -## DESCRIPTION +==== +This is a nominal usage example to set up a fused file C consisting of +files A and B: +---- +$ fusefile C A B +---- +==== -*fusefile* is FUSE file mount that presents a series of fragments of -other files as a contiguous concatenation. It bind mounts a driver on -top of the file mountpoint to present the nominated file fragments as -a single, contiguous file. +==== +This is a nominal example of tearing down a fused file C: +---- +$ fusermount -u C +---- +==== -The fragment arguments include the filename of a source file, and -optionally start and end byte positions. All in all there five -variations: +See the +man page+ for usage details and some more examples. - * __filename__ include all of the file. - - * __filename/__ include all of the file named with "/" in the pathname. This case requires a final "/", since the last "/" separates the filename from the position details. - - * __filename/from__ include the file from the given start position, to end. - - * __filename/-to__ include the file from beginning to the given end position (not included). - - * __filename/from-to__ include the file from the given start position, up to the given end position (not included). - -## EXAMPLES - -Insert file "y" into file "x" at position 1200: - - $ fusefile -ononempty x x/-1200 y x/1200 -The bind mount shadows the original file "x", and presents the -composite instead. - -Make file y be a swap of the beginning and end of file "x", at -position 2442: - - $ fusefile y x/2442 x/-2442 - -## NOTES - -Note that **fusefile** opens the nominated source file(s) before bind -mounting. With the fuse option __-ononempty__ it will bind over an -non-empty file, which may be useful. The source file descriptors -remain open, but the source fragments are not recomputed. If a source -file changes or reduces in size, anything may happen. - -If the mountpoint file doesn't exist, then **fusefile** creates it, -and removes it when unmounted. - -## AUTHOR - -Ralph Rönnquist