Commit f4f7aecb authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0b99fa5e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define _WENDELIN_BIGFILE_FILE_H_ #define _WENDELIN_BIGFILE_FILE_H_
/* Wendelin.bigfile | Base file class /* Wendelin.bigfile | Base file class
* Copyright (C) 2014-2015 Nexedi SA and Contributors. * Copyright (C) 2014-2019 Nexedi SA and Contributors.
* Kirill Smelkov <kirr@nexedi.com> * Kirill Smelkov <kirr@nexedi.com>
* *
* This program is free software: you can Use, Study, Modify and Redistribute * This program is free software: you can Use, Study, Modify and Redistribute
...@@ -47,6 +47,7 @@ struct BigFile { ...@@ -47,6 +47,7 @@ struct BigFile {
}; };
typedef struct BigFile BigFile; typedef struct BigFile BigFile;
/* bigfile_ops defines interface that BigFile implementations must provide. */
struct bigfile_ops { struct bigfile_ops {
/* load/store file block to/from memory. /* load/store file block to/from memory.
* NOTE len(buf) must be = file->blksize * NOTE len(buf) must be = file->blksize
...@@ -55,10 +56,6 @@ struct bigfile_ops { ...@@ -55,10 +56,6 @@ struct bigfile_ops {
*/ */
// XXX loadblk - called from SIGSEGV context; // XXX loadblk - called from SIGSEGV context;
// storeblk - called from usual context // storeblk - called from usual context
// (in the future maybe in SIGSEGV context too?)
//
// TODO maybe also/instead use ram-fd based interface and then
// loadblk/storeblk would use splice(2) into/from that?
int (*loadblk) (BigFile *file, blk_t blk, void *buf); int (*loadblk) (BigFile *file, blk_t blk, void *buf);
int (*storeblk) (BigFile *file, blk_t blk, const void *buf); int (*storeblk) (BigFile *file, blk_t blk, const void *buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment