|
@@ -1,53 +1,26 @@
|
1
|
1
|
/*
|
2
|
|
-# fjfs
|
3
|
|
-# Quick'n'dirty FUSE module implementing joining of different files as one
|
4
|
|
-#
|
5
|
|
-# Copyright (c) 2010 Georgi Chorbadzhiyski (georgi@unixsol.org)
|
6
|
|
-# All rights reserved.
|
7
|
|
-#
|
8
|
|
-# Redistribution and use of this script, with or without modification, is
|
9
|
|
-# permitted provided that the following conditions are met:
|
10
|
|
-#
|
11
|
|
-# 1. Redistributions of this script must retain the above copyright
|
12
|
|
-# notice, this list of conditions and the following disclaimer.
|
13
|
|
-#
|
14
|
|
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
15
|
|
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
16
|
|
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
17
|
|
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
18
|
|
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
19
|
|
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
20
|
|
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
21
|
|
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
22
|
|
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
23
|
|
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
24
|
|
-#
|
25
|
|
-# To compile the program run:
|
26
|
|
-# gcc -Wall -Wextra `pkg-config fuse --cflags --libs` fjfs.c -lfuse -o fjfs
|
27
|
|
-#
|
28
|
|
-# To use it:
|
29
|
|
-# 1. Install the FUSE module
|
30
|
|
-# sudo modprobe fuse
|
31
|
|
-#
|
32
|
|
-# 2. Create the list of files to join
|
33
|
|
-# echo /etc/group >> filelist.txt
|
34
|
|
-# echo /etc/issue >> filelist.txt
|
35
|
|
-# echo /etc/passwd >> filelist.txt
|
36
|
|
-#
|
37
|
|
-# 3. Create an empty file over which the files in the list will be joined
|
38
|
|
-# touch joined.txt
|
39
|
|
-#
|
40
|
|
-# 4. Mount fjfs
|
41
|
|
-# ./fjfs filelist.txt joined.txt
|
42
|
|
-#
|
43
|
|
-# 5. Check the result with
|
44
|
|
-# cat joined.txt
|
45
|
|
-#
|
46
|
|
-# You will see the contents of all the files listed in filelist.txt
|
47
|
|
-#
|
48
|
|
-# 6. Unmount the fs
|
49
|
|
-# fusermount -u joined.txt
|
50
|
|
-#
|
|
2
|
+ * fjfs
|
|
3
|
+ * fjfs is FUSE module that implements virtual joining of multiple files as one.
|
|
4
|
+ *
|
|
5
|
+ * Copyright (c) 2010-2011 Georgi Chorbadzhiyski (georgi@unixsol.org)
|
|
6
|
+ * All rights reserved.
|
|
7
|
+ *
|
|
8
|
+ * Redistribution and use of this script, with or without modification, is
|
|
9
|
+ * permitted provided that the following conditions are met:
|
|
10
|
+ *
|
|
11
|
+ * 1. Redistributions of this script must retain the above copyright
|
|
12
|
+ * notice, this list of conditions and the following disclaimer.
|
|
13
|
+ *
|
|
14
|
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
15
|
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
16
|
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
17
|
+ * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
18
|
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
19
|
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
20
|
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
21
|
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
22
|
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
23
|
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
51
|
24
|
*/
|
52
|
25
|
|
53
|
26
|
#define FUSE_USE_VERSION 26
|