]> mj.ucw.cz Git - libucw.git/commit
added the configuration item BCONFIG_CAN_OVERWRITE, which specifies whether the
authorRobert Spalek <robert@ucw.cz>
Fri, 25 Jun 2004 11:53:39 +0000 (11:53 +0000)
committerRobert Spalek <robert@ucw.cz>
Fri, 25 Jun 2004 11:53:39 +0000 (11:53 +0000)
commit6a8ae5549f28ef50110e23ffd418105ef8f38d79
tree84086bcaca875310df912c459bc524ec6a9178d9
parent068b8926a1b92e1e05f8e12446d2ab27fc98de6f
added the configuration item BCONFIG_CAN_OVERWRITE, which specifies whether the
caller is allowed to perform the following 0-copy write operation:

1. call bdirect_read_prepare()
2. modify the data directly in the buffer returned (e.g. put \0's there)
3. call bflush() before any seek operation to let the fastbuf know
lib/fastbuf.h
lib/fb-file.c
lib/fb-mmap.c