In-Depth Analysis of the Core Mechanism and Engineering Practice of Linux mmap

In-Depth Analysis of the Core Mechanism and Engineering Practice of Linux mmap

In the collaborative design between the file system and the kernel, mmap is a core mechanism that combines elegance and complexity. It is far more than just “mapping files to memory”; it involves the intricate cooperation of virtual memory, file systems, page cache, and even hardware MMU. Today, we will penetrate the abstraction, delve into … Read more

A Detailed Explanation of the Linux File System

A Detailed Explanation of the Linux File System

The above image mainly helps you understand the hierarchical structure of the Linux file system and its importance.Previously, the Linux file system was like a chaotic small town where people could build houses wherever they wanted. However, in 1994, the File System Hierarchy Standard (FHS) was introduced, bringing order to the Linux file system.By adopting … Read more

Embedded Systems Panorama 5: Practical File System and Storage Management

Embedded Systems Panorama 5: Practical File System and Storage Management

In embedded Linux systems, storage and file systems are the core links for data interaction between the kernel and user space. Whether it is an SD card, NAND/NOR Flash, or eMMC, understanding the Linux storage subsystem, driver mechanisms, and file system management not only helps ensure stable system operation but also enhances performance and reduces … Read more

Latest Progress in Implementing FUSE File System with Rust

Latest Progress in Implementing FUSE File System with Rust

Yu Ruiji First-year graduate student at the School of Computer Science, Nanjing University, open-source intern for the rk8s project, involved in the development of image building tools and file system direction in rk8s, currently mainly responsible for testing and maintaining libfuse-fs. libfuse-fs (https://crates.io/crates/libfuse-fs) is a FUSE (Filesystem in Userspace) library developed in Rust, aimed at … Read more

Guide to Non-Destructive Expansion of the Linux Root Directory

Guide to Non-Destructive Expansion of the Linux Root Directory

Introduction In Linux server operations, it is common to encounter issues where the root directory (<span>/</span>) runs out of space due to insufficient initial partition planning. Directly formatting or rebuilding the partition can lead to the loss of system configurations and application data under the root directory. This article provides a complete non-destructive expansion process … Read more

In-Depth Analysis of Linux VFS Atomic Operation Functions: Key Technologies for Building Reliable File Systems

In-Depth Analysis of Linux VFS Atomic Operation Functions: Key Technologies for Building Reliable File Systems

In the Linux system, the virtual file system (VFS) serves as an abstraction layer for file systems, providing a unified file operation interface for upper-level applications. The previous article detailed the core member interface functions of Linux VFS, helping to understand the underlying implementation of file systems. The atomic operation mechanism implemented at the VFS … Read more

Linux System Disk Space Available but Read-Only Error: No Space Left on Device

Linux System Disk Space Available but Read-Only Error: No Space Left on Device

Click the blue text to follow us // A journey of a thousand miles begins with a single step 【Problem Description】 After logging into the Linux system, the cloud host disk shows available space with the command df -h, but it reports a read-only error: No space left on device. 【Problem Analysis】 This is a … Read more

In-Depth Analysis of Linux SquashFS: From Principles to Practice

In-Depth Analysis of Linux SquashFS: From Principles to Practice 1 Overview of SquashFS: The Read-Only Compressed File System for Linux SquashFS (.sfs) is a GPL open-source licensed read-only compressed file system used by the Linux kernel, designed specifically for general read-only file system use cases. This file system excels in data backup and environments with … Read more

In-Depth Analysis of the Linux Virtual File System (VFS)

In-Depth Analysis of the Linux Virtual File System (VFS) 1 Overview and Historical Background of Linux VFS The Linux Virtual File System (VFS) is an extremely important subsystem within the Linux kernel. It serves as an abstraction layer for file systems, providing a unified file access interface for user-space applications while offering a standardized implementation … Read more

Exploring the Linux File System: A Complete Guide from Root Directory to Inode

In the universe of Linux, we interact with files and directories every day. Commands like ls, cd, and cat are as natural as breathing. However, most people navigate this jungle of code without ever seeing its map, let alone understanding the physical laws that support this jungle. When you enter ls -l, the filenames, dates, … Read more