Compiling a new file system into the Linux kernel

I am working on creating a new file system as a prototype on Debian because the existing file systems do not meet the specific requirements that I have. It should be a prototype to evaluate the specific requirements that we have.

To do this, I first thought of taking an example of a file system such as testfs from GitHub in order to try to compile it. I read to me in step (e) , but I'm not sure how to compile Linux exactly.


Steps reached:

I am trying to do using the provided MakeFile for the project, but this is the error I get.

make -C /home/username/Workspace/testfs M=`pwd` modules
make[1]: Entering directory `/home/username/Workspace/testfs'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/home/username/Workspace/testfs'
make: *** [testfs] Error 2

From what I understand, he needs the kernel source code (which is in mine /usr/src).

debian:testfs karun$l /usr/src/
total 74M
drwxr-xr-x  4 root root 4.0K Jan  8 18:34 linux-headers-3.2.0-4-686-pae
drwxr-xr-x  4 root root 4.0K Jan  8 18:34 linux-headers-3.2.0-4-common
lrwxrwxrwx  1 root root   23 Jun 24  2012 linux-kbuild-3.2 -> ../lib/linux-kbuild-3.2
-rw-r--r--  1 root root 122K Sep 18 20:20 linux-patch-3.2-rt.patch.bz2
lrwxrwxrwx  1 root root   25 Jan 10 20:21 linux-source -> /usr/src/linux-source-3.2
drwxr-xr-x 22 root root 4.0K Sep 18 20:20 linux-source-3.2
-rw-r--r--  1 root root  74M Sep 18 20:22 linux-source-3.2.tar.bz2
lrwxrwxrwx  1 root root   49 Jan  8 14:29 vboxguest-4.3.6 -> /opt/VBoxGuestAdditions-4.3.6/src/vboxguest-4.3.6

An alternative attempt was to try to compile the kernel with the FS code, and then β€œinstall” it.


Question: How to make my module visible on menuconfigto make sure that it is compiled with the source code and deployed?

- ( -) ( CustFS, NTFS HFS:)) Linux. , , , .

, ,

  • FS

FUSE, , , . FS - ( ), HDD, , , ( ).


:

  • Debian 7.3 (wheezy) VirtualBox
  • Linux Kernel 3.2.0-4-686-pae (Dump from uname -r)

- , , . /, , . !

, , Java. (). C/++ , . , , .

+4
1

FUSE. userland, .

- FUSE, , FUSE, - . ZFS NTFS FUSE.

, , . , , .

+1

All Articles