Small File and "ls" performance ..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> If write() succeeds, is it not possible for flush() or close() to fail
> later? My understanding is you need to check for errors from both. For
> example, write() might just write to an in-memory buffer, then the disk
> might fill up before the change is flushed out.
>
>
A close() by itself does nothing but freeing up of resources. It does not
guarantee data reaching the disk. You need to use fsync() for that
assurance. By turning flush-behind on, you will only be missing errors which
might occur during free()'ing up of internal structures, which is very
unlikely. You will not miss any I/O error.

Avati


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux