Notes Linux kernel Learning (10) virtual file system concept

Source: Internet
Author: User

Virtual file system

Virtual file system: The kernel subsystem VFS,VFS is the abstraction layer of the file system in the kernel, and provides the file system related interface for the user space;

With a virtual file system, programs can interact and operate in different file systems using standard Linux file system calls.

VFS as an abstraction layer:

    

The file system is installed on a specific installation point, which is called a namespace in the global hierarchy.

All installed file systems are present in the system as branches of the root file system tree.

     

File System main objects:

Super Block object: Represents an installed file system; struct Super_block {}

Index Node object: represents a file; struct Inode {}

Catalog Item Object: Represents a directory entry, a component of a path; struct Dentry {}

File object: Process open file; struct file {}

Specific file system type: struct File_system_type {}

Installing the file System instance: struct Vfsmount {}

The structure relationships between objects are as follows:

    

The VFS file system mechanism in Linux:

https://www.ibm.com/developerworks/cn/linux/l-vfs/

Notes Linux kernel Learning (10) virtual file system concept

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.