Add .INCOMPLETE file marker to flexnbd listen

We drop a marker onto the filesystem to say when we know the image we're
serving is not yet ready.
This commit is contained in:
Alex Young
2012-07-19 17:34:20 +01:00
parent 76bbdb4889
commit b0f1a027c6
4 changed files with 91 additions and 0 deletions

View File

@@ -69,6 +69,9 @@ void flexnbd_set_server( struct flexnbd * flexnbd, struct server * serve );
void flexnbd_switch( struct flexnbd * flexnbd, struct server *(listen_cb)(struct listen *) );
int flexnbd_signal_fd( struct flexnbd * flexnbd );
void flexnbd_mark_incomplete( struct flexnbd * flexnbd );
void flexnbd_mark_complete( struct flexnbd * flexnbd );
int flexnbd_serve( struct flexnbd * flexnbd );
struct server * flexnbd_server( struct flexnbd * flexnbd );