From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: Domain Save Image Format proposal (draft B) Date: Tue, 11 Feb 2014 17:04:48 +0000 Message-ID: <52FA5830.9060205@citrix.com> References: <52F90A71.40802@citrix.com> <21242.20988.614574.86966@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21242.20988.614574.86966@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Shriram Rajagopalan , Ian Campbell , "Xen-devel@lists.xen.org" , David Vrabel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 11/02/14 16:38, Ian Jackson wrote: > David Vrabel writes ("Domain Save Image Format proposal (draft B)"): >> Records >> ======= >> >> A record has a record header, type specific data and a trailing >> footer. If body_length is not a multiple of 8, the body is padded >> with zeroes to align the checksum field on an 8 octet boundary. >> >> 0 1 2 3 4 5 6 7 octet >> +-----------------------+-------------------------+ >> | type | body_length | >> +-----------+-----------+-------------------------+ >> | options | (reserved) | >> +-----------+-------------------------------------+ > ... >> options Bit 0: 0 - checksum invalid, 1 = checksum valid. > There needs to be a flag saying what the receiver should do if it sees > a record it doesn't understand. There are two possible behaviours: > ignore the record, and abandon the restore attempt. No need. Any unrecognised records can be safely ignored. Any record which couldn't be ignored would be required to bump the main stream version number at which point the older reader would bail on that basis. This would allow adding new backward compatible features without breaking older systems, which is the way compatibility is maintained in the current code. ~Andrew