The Write function detects that the disk has no space

Source: Internet
Author: User

When calling the Write function for asynchronous read and write, this time it is possible to return the ENOSPEC error code, when this error code occurs, memory pages already have a large amount of data, this time when the data is handled, the memory of the Pageout function will release these page table, After all, because of disk space, but can not guarantee that the page table in memory, always exist, waiting for the user to delete the disk space, and then re-write, after all, the data is not completely useless, to ensure the integrity and consistency of the data. There is a problem with how the current developer views the problem. Especially if the disk is offline and the memory runs out, causing the system to crash.

To view the source code from a certain angle, the write function knows how the disk is fully loaded and cannot be written. In particular, the underlying writepage function that deals with drives is how to obtain information about disk drive read and write.

The Write function detects that the disk has no space

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.