-/*
- FUSE: Filesystem in Userspace
- Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
+/***
+ fusefile - overlay a file path with a concatenation of parts of
+ other files, read only.
- This program can be distributed under the terms of the GNU GPL.
- See the file COPYING.
+ Copyright (C) 2019 Ralph Ronnquist
- Overlay a file path with a concatenation of parts of other files.
- read only
+ This program is free software: you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see
+ <http://www.gnu.org/licenses/>.
+
+ This source was inspired by the "null.c" example of the libfuse
+ sources, which is distributed under GPL2, and copyright (C)
+ 2001-2007 Miklos Szeredi <miklos@szeredi.hu>.
*/
#define FUSE_USE_VERSION 31
}
static struct fuse_operations fusefile_oper = {
- .getattr = fusefile_getattr,
- .open = fusefile_open,
- .read = fusefile_read,
+ .getattr = fusefile_getattr,
+ .open = fusefile_open,
+ .read = fusefile_read,
.destroy = fusefile_destroy,
};
static void usage() {
char *usage =
-"Usage: catfs [ <fuse options> ] <mount> <file/from-to> ... \n"
-"Mount a concatenation of files\n"
+"Usage: fusefile [ <fuse options> ] <mount> <file/from-to> ... \n"
+"Mounts a virtual, read-only file that is a concatenation of file fragments\n"
;
fprintf( stderr, "%s", usage );
exit( 1 );
/**
* Mount a concatenation of files,
- * [ <fuse options> ] <mount> <file:from,to> ...
+ * [ <fuse options> ] <mount> <file/from-to> ...
*/
int main(int argc, char *argv[])
{