Browse Source

Rename filejoinfs to fjfs.

Georgi Chorbadzhiyski 12 years ago
parent
commit
a51c9ceaba
5 changed files with 16 additions and 16 deletions
  1. 4
    4
      Makefile
  2. 5
    5
      fjfs.c
  3. 2
    2
      fusefile_valgrind
  4. 1
    1
      mount.sh
  5. 4
    4
      readme.txt

+ 4
- 4
Makefile View File

12
 CFLAGS+=	`pkg-config --cflags fuse`
12
 CFLAGS+=	`pkg-config --cflags fuse`
13
 LIBS+=		`pkg-config --libs fuse`
13
 LIBS+=		`pkg-config --libs fuse`
14
 
14
 
15
-all: filejoinfs
15
+all: fjfs
16
 
16
 
17
-filejoinfs: filejoinfs.c
18
-	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ filejoinfs.c ${LIBS}
17
+fjfs: fjfs.c
18
+	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o $@ fjfs.c ${LIBS}
19
 
19
 
20
 clean:
20
 clean:
21
-	rm -f filejoinfs
21
+	rm -f fjfs

filejoinfs.c → fjfs.c View File

1
 /*
1
 /*
2
-# filejoinfs v1.0
2
+# fjfs
3
 # Quick'n'dirty FUSE module implementing joining of different files as one
3
 # Quick'n'dirty FUSE module implementing joining of different files as one
4
 #
4
 #
5
 # Copyright (c) 2010 Georgi Chorbadzhiyski (georgi@unixsol.org)
5
 # Copyright (c) 2010 Georgi Chorbadzhiyski (georgi@unixsol.org)
23
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
 #
24
 #
25
 #  To compile the program run:
25
 #  To compile the program run:
26
-#         gcc -Wall -Wextra `pkg-config fuse --cflags --libs` filejoinfs.c -lfuse -o filejoinfs
26
+#         gcc -Wall -Wextra `pkg-config fuse --cflags --libs` fjfs.c -lfuse -o fjfs
27
 #
27
 #
28
 #  To use it:
28
 #  To use it:
29
 #       1. Install the FUSE module
29
 #       1. Install the FUSE module
37
 #       3. Create an empty file over which the files in the list will be joined
37
 #       3. Create an empty file over which the files in the list will be joined
38
 #             touch joined.txt
38
 #             touch joined.txt
39
 #
39
 #
40
-#       4. Mount filejoinfs
41
-#             ./filejoinfs filelist.txt joined.txt
40
+#       4. Mount fjfs
41
+#             ./fjfs filelist.txt joined.txt
42
 #
42
 #
43
 #       5. Check the result with
43
 #       5. Check the result with
44
 #             cat joined.txt
44
 #             cat joined.txt
262
 	struct stat sb;
262
 	struct stat sb;
263
 
263
 
264
 	if (argc < 3) {
264
 	if (argc < 3) {
265
-		fprintf(stderr, "Usage: filejoinfs filelist.txt mount-point-file\n");
265
+		fprintf(stderr, "Usage: fjfs filelist.txt mount-point-file\n");
266
 		exit(EXIT_FAILURE);
266
 		exit(EXIT_FAILURE);
267
 	}
267
 	}
268
 
268
 

+ 2
- 2
fusefile_valgrind View File

1
 ulimit -c unlimited
1
 ulimit -c unlimited
2
 valgrind \
2
 valgrind \
3
-	--log-file=filejoinfs-$(date +%F-%H:%M:%S).log \
3
+	--log-file=fjfs-$(date +%F-%H:%M:%S).log \
4
 	--leak-check=full \
4
 	--leak-check=full \
5
 	--show-reachable=yes \
5
 	--show-reachable=yes \
6
 	--undef-value-errors=no \
6
 	--undef-value-errors=no \
8
 	--run-libc-freeres=yes \
8
 	--run-libc-freeres=yes \
9
 	--time-stamp=yes \
9
 	--time-stamp=yes \
10
 		-- \
10
 		-- \
11
-	./filejoinfs test.txt
11
+	./fjfs test.txt

+ 1
- 1
mount.sh View File

4
 
4
 
5
 ulimit -c unlimited
5
 ulimit -c unlimited
6
 touch testmnt.txt
6
 touch testmnt.txt
7
-./filejoinfs test.txt testmnt.txt
7
+./fjfs test.txt testmnt.txt
8
 
8
 

+ 4
- 4
readme.txt View File

1
-filejoinfs v1.0
1
+fjfs v1.0
2
 
2
 
3
-filejoinfs is a FUSE module that allows several files to be joined into one.
3
+fjfs is a FUSE module that allows several files to be virtually joined into one.
4
 
4
 
5
 To compile the program run "make".
5
 To compile the program run "make".
6
 
6
 
16
      3. Create an empty file over which the files in the list will be joined
16
      3. Create an empty file over which the files in the list will be joined
17
            touch joined.txt
17
            touch joined.txt
18
 
18
 
19
-     4. Mount filejoinfs
20
-           ./filejoinfs filelist.txt joined.txt
19
+     4. Mount fjfs
20
+           ./fjfs filelist.txt joined.txt
21
 
21
 
22
      5. Check the result with
22
      5. Check the result with
23
            cat joined.txt
23
            cat joined.txt

Loading…
Cancel
Save