Messages in this thread | | | From | Nikita Danilov <> | Date | Thu, 21 Aug 2003 19:47:14 +0400 | Subject | Re: posix_fallocate question again |
| |
Jamie Lokier writes: > Nikita Danilov wrote: > > fallocate() will be useful when writing into file through > > mmap(). Currently kernel can just drop dirtied page at any moment (if > > ->writepage() fails with -ENOSPC), so the only safe way to modify file > > through mmap() is by using mlock(). > > Isn't msync() reliable? I.e. will it at least report the error?
Seems latest 2.6 (19 Aug change sets by Andrew Morton) got support for this: shrink_list() set AS_ENOSPC on mapping and error will later be returned.
> > -- Jamie
Nikita. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |