You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/abbbi/nullfsvfs/actions/workflows/ci-ubuntu-latest.yml)
2
2
3
3
## Index
4
4
5
5
-[About](#nullfs)
6
6
-[Usage](#usage)
7
+
-[Installation](#installation)
7
8
-[Use Cases](#usecases)
8
9
-[Keeping data](#keep)
9
10
-[Mount options](#supported)
10
11
11
12
# nullfs
12
-
a virtual file system that behaves like /dev/null
13
+
A virtual file system that behaves like /dev/null
13
14
14
15
It can handle regular file operations like mkdir/rmdir/ln but writing to files
15
-
does not store any data. The file size is however saved, so reading from the
16
-
files behaves like reading from /dev/zero with a fixed size.
16
+
does not store any data. The file size is however saved, reading from the
17
+
files behaves like reading from /dev/zero.
17
18
18
19
Writing and reading is basically an NOOP, so it can be used for performance
19
20
testing with applications that require directory structures. Implemented as
@@ -71,6 +72,35 @@ makes it behave like reading from /dev/zero:
71
72
```
72
73
73
74
75
+
## installation
76
+
77
+
To install the module for the running linux kernel use:
78
+
79
+
```
80
+
# make -C /lib/modules/$(uname -r)/build M=$PWD modules_install INSTALL_MOD_DIR=kernel/fs/nullfs
81
+
# depmod
82
+
```
83
+
84
+
Running `depmod` is mandatory. Now the module can be loaded via:
85
+
86
+
```
87
+
modprobe nullfs
88
+
```
89
+
90
+
To automatically load filesystem module during boot time, create a configuration
91
+
file suitable for your distribution, usually located in */etc/modules-load.d*
92
+
93
+
```
94
+
echo nullfs > /etc/modules-load.d/nullfs.conf
95
+
```
96
+
97
+
Example entry for `/etc/fstab`, mounting the filesystem to `/nullfs`:
98
+
99
+
100
+
```
101
+
none /nullfs nullfs auto
102
+
```
103
+
74
104
### keep
75
105
76
106
There is the possiblity to exclude certain files from beeing sent into the void.
@@ -103,6 +133,9 @@ nulled.
103
133
It is possible to set POSIX ACL attributes via `setfacl` so it appears the
104
134
filesystem supports them, they are not saved.
105
135
136
+
Works with recent linux kernels (5.x), nullfs builds fine with older kernels
137
+
(4.x, 3.x) but setting ACL information fails with "Operation not supported".
0 commit comments