Inodes is restricted separately, but the blocks value also increases with the creation of Empty files.

Source: Internet
Author: User
Tags touch command
Inodes restrictions are imposed separately, but blocks values also increase with the creation of Empty files-Linux general technology-Linux technology and application information. The following is a detailed description. : 0) 1. There are two ways to limit the disk quota: 1. The number of files that a user can create (inodes); 2. the disk size that the user can use. Started the disk quota of user1 under "/dev/hda5". Now I start the experiment on disk restrictions of user1 in this partition: only set restrictions on inodes, in inodes, the soft value is 6 and the hard value is 12. Save the setting and start to use user1 to create a new file under "/dev/hda5" and run the touch command, it should be okay to create the "1, 2, 3" file, run "edquota user1" under the root user to check if user1 is restricted under "/dev/hda5". At this time, the inodes value is 3, but what makes me incredible is: the blocks value also changes to 3! It's strange that the empty file created with the touch command does not occupy the block size! This is correct when I perform an experiment on the computer in the school data center. Why does the new file created with the touch command affect the change of the blocks value? Is it because the system in the school data center is different from the system kernel on my computer? (The Linux version I installed is Red Hat Enterprise Linux 4 downloaded from the Internet)
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.