All Projects → carlosgaldino → Gotenksfs

carlosgaldino / Gotenksfs

A file system on top of your file system

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Gotenksfs

Python Fuse
Python 2.x/3.x bindings for libfuse 2.x
Stars: ✭ 171 (-15.76%)
Mutual labels:  fuse, filesystem
Gcsf
a FUSE file system based on Google Drive
Stars: ✭ 2,251 (+1008.87%)
Mutual labels:  fuse, filesystem
Onedrive Fuse Fs
Script to mount Microsoft OneDrive (formerly known as SkyDrive) folder as a FUSE filesystem
Stars: ✭ 68 (-66.5%)
Mutual labels:  fuse, filesystem
Moosefs
MooseFS – Open Source, Petabyte, Fault-Tolerant, Highly Performing, Scalable Network Distributed File System (Software-Defined Storage)
Stars: ✭ 1,025 (+404.93%)
Mutual labels:  fuse, filesystem
Containerfs
a cluster filesystem for containers
Stars: ✭ 264 (+30.05%)
Mutual labels:  fuse, filesystem
Kaitai fs
KaitaiFS: mount any filesystem specified with a .ksy as a real file system
Stars: ✭ 45 (-77.83%)
Mutual labels:  fuse, filesystem
Go Fuse
FUSE bindings for Go
Stars: ✭ 1,267 (+524.14%)
Mutual labels:  fuse, filesystem
Distribyted
📂 ➡️ 📺 🎶 🎮 Torrent client with on-demand file downloading as a filesystem.
Stars: ✭ 791 (+289.66%)
Mutual labels:  fuse, filesystem
Litfs
A FUSE file system in Go extended with persistent file storage
Stars: ✭ 116 (-42.86%)
Mutual labels:  fuse, filesystem
Cryfs
Cryptographic filesystem for the cloud
Stars: ✭ 1,560 (+668.47%)
Mutual labels:  fuse, filesystem
Fusell Seed
FUSE (the low-level interface) file system boilerplate 📂 🔌 💾
Stars: ✭ 9 (-95.57%)
Mutual labels:  fuse, filesystem
Gocryptfs
Encrypted overlay filesystem written in Go
Stars: ✭ 2,088 (+928.57%)
Mutual labels:  fuse, filesystem
Fuse Copyfs
CopyFS is the copy-on-write (COW) versioned filesystem for FUSE. Years ago I added features to CopyFS 1.0, then 1.0.1 came out and I never bothered to forward-port my changes. Now I have. Master is 1.3.1M, which is CopyFS 1.0.1 + 1.3M
Stars: ✭ 24 (-88.18%)
Mutual labels:  fuse, filesystem
Phoenixfs
🔥 a versioning filesystem inspired by git
Stars: ✭ 191 (-5.91%)
Mutual labels:  fuse, filesystem
Fuse Ts
Stars: ✭ 6 (-97.04%)
Mutual labels:  fuse, filesystem
Polyfuse
A FUSE (Filesystem in Userspace) library for Rust
Stars: ✭ 76 (-62.56%)
Mutual labels:  fuse, filesystem
Dbxfs
User-space file system for Dropbox
Stars: ✭ 673 (+231.53%)
Mutual labels:  fuse, filesystem
Fuse Rs
Rust library for filesystems in userspace (FUSE)
Stars: ✭ 735 (+262.07%)
Mutual labels:  fuse, filesystem
Docker Volume Ipfs
🐳 This is an open source volume plugin that allows using an ipfs filesystem as a volume.
Stars: ✭ 99 (-51.23%)
Mutual labels:  fuse, filesystem
Mergerfs
a featureful union filesystem
Stars: ✭ 2,114 (+941.38%)
Mutual labels:  fuse, filesystem

GotenksFS

GotenksFS is a file system built for learning purposes. The disk is represented as a regular file which is created using the mkfs command provided by this binary. A mount command is also available for mounting the file system using FUSE.

For a more in-depth overview of this project, read the blog post: Writing a file system from scratch in Rust.

Layout

The first 1024 bytes of the "disk" hold the superblock with the metadata about the file system. When mkfs is executed, the "disk" is divided into fixed-size blocks. With the exception of the superblock, all data is written in these blocks. The size can be configured to be either 1 KiB, 2 KiB, or 4 KiB.

Blocks are grouped in block groups. The first two blocks in each block group are used for the data and inode bitmaps. Following that, there is the appropriate number of blocks for storing the inode table. As an example, inodes have a size of 128 bytes which means that for a block size of 4 KiB there will 32768 inodes in the bitmap which will require 1024 blocks for the inode table. After the inode table, the remaining blocks are used for user data. In this example, 32768 blocks taking 128 MiB to be exact.

Each inode has 12 direct pointers. The system supports larger files by using double indirect pointers. Considering blocks of 4 KiB, this means the maximum size a file can have is 4 GiB. The file system could theoretically be up to 16 TiB in size.

Example

First we need to create the disk image:

$ ./gotenksfs mkfs disk.img -s "10 GiB" -b 4096

Then mount it:

$ ./gotenksfs mount disk.img gotenks

The following image shows the file system in action.

Usage

gotenksfs
A file system on top of your file system

USAGE:
    gotenksfs [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help     Prints this message or the help of the given subcommand(s)
    mkfs     Create a new file system
    mount    Mount a file system
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].