Go to the documentation of this file.
26 int main(
int argc,
char **argv)
30 const char *path =
"/";
40 const String offsetStr(argv[2],
false);
42 NOTICE(
"file storage: " << argv[1] <<
" at offset " << offset);
57 FATAL(
"unable to load BootImage: result = " << (
int) imageResult);
69 "': result = " << (
int) symbolResult);
84 ERROR(
"no usable storage found");
#define NOTICE(msg)
Output a notice message.
Linnenbank FileSystem (LinnFS).
Uses a BootImage as a storage provider.
#define LINNFS_ROOTFS_FILE
Default filename of the embedded root filesystem (ramfs)
int run()
Enters an infinite loop, serving incoming requests.
int main(int argc, char **argv)
Program entry point.
Log to the kernel using PrivExec().
#define FATAL(msg)
Output a critical message and terminate program immediatly.
#define NULL
NULL means zero.
unsigned int Size
Any sane size indicator cannot go negative.
virtual FileSystem::Result initialize()
Initialize the Storage device.
virtual FileSystem::Result initialize()
Initialize the Storage device.
FileSystem::Result mount()
Mount the FileSystem.
Uses a BootSymbol inside a BootImage as a storage provider.
Use a file as Storage provider.
#define assert(exp)
Insert program diagnostics.
#define ERROR(msg)
Output an error message.
Result
Result code for filesystem Actions.
Provides a storage device to build filesystems on top.
long toLong(const Number::Base base=Number::Dec) const
Convert the String to a signed long integer.