From: Ralph Ronnquist Date: Mon, 11 Mar 2019 03:40:37 +0000 (+1100) Subject: added licence blurb X-Git-Tag: 0.3~13 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=60cae3781c673b52fa68c0a1c8c18136dfc70d90;p=rrq%2Ffusefile.git added licence blurb --- diff --git a/fusefile.c b/fusefile.c index 632221f..5aa2917 100644 --- a/fusefile.c +++ b/fusefile.c @@ -1,12 +1,26 @@ -/* - FUSE: Filesystem in Userspace - Copyright (C) 2001-2007 Miklos Szeredi +/*** + 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 + . + + 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 . */ #define FUSE_USE_VERSION 31 @@ -219,16 +233,16 @@ static void fusefile_destroy(void *data) { } 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 [ ] ... \n" -"Mount a concatenation of files\n" +"Usage: fusefile [ ] ... \n" +"Mounts a virtual, read-only file that is a concatenation of file fragments\n" ; fprintf( stderr, "%s", usage ); exit( 1 ); @@ -236,7 +250,7 @@ static void usage() { /** * Mount a concatenation of files, - * [ ] ... + * [ ] ... */ int main(int argc, char *argv[]) {