Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Storage migration code #6

Merged
merged 10 commits into from Jun 25, 2012

Conversation

Projects
None yet
2 participants
Owner

jonludlam commented May 21, 2012

This pull request is merging the code required for storage migration. It consists of an NBD client and server module, and some mirroring code.

jonludlam added some commits Feb 9, 2012

Several changes:
* NBD client/server for tapdisk.
* block-export for mirroring to xapi's import-raw-vdi
* The ability to add a mirror when unpausing a VDI
Rename nbd.h to tapdisk-nbd.h to avoid collision with system nbd.h
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
* Add pause/unpause logic to the nbd server
* clean up stale unix domain sockets on image close.
* Don't close the nbdserver when you detach the vdi
Several minor fixups:
* On resume, only re-enable events on the listening TCP socket if it had
  previously been in use
* Remove several spammy debug messages
* Kill the read path in the NBD client code - this is for mirroring
  only.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Use async IO in block-nbd.c
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Add status reporting of the mirror status.
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Add the ability to remove a secondary image on unpause
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Ensure that an zero length recv in nbdserver_clientcb closes the conn…
…ection

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Detect premature server shutdown in NBD client
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Fix error handling when the NBD mirroring times out
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>

andreil added a commit that referenced this pull request Jun 25, 2012

@andreil andreil merged commit 230797a into master Jun 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment