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

@@ -81,6 +81,12 @@ the source in the interim.
To support transparently replacing an existing server, flexnbd can
switch addresses once it has received a successful migration.
When `flexnbd listen` is run, it will create a file named
<FILE>.INCOMPLETE next to FILE. This will be removed when a migration
has successfully completed. The .INCOMPLETE file will be created before
the listening socket is opened.
Options
^^^^^^^
As for 'serve', with these additions: