X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=doc%2Fformat.txt;h=2c40075221ac5736a4bf428980690bfb70f00c54;hp=19bf2f21383d787b781749fc684c1f43c1b5f54c;hb=da1d95d3242ee9d596e60b8d5bfcf9e5bedcd80f;hpb=97fae8bfbe761472bb98fe4f398460dac79127c4 diff --git a/doc/format.txt b/doc/format.txt index 19bf2f2..2c40075 100644 --- a/doc/format.txt +++ b/doc/format.txt @@ -149,18 +149,20 @@ is invalid to select using the slice syntax a range of bytes that does not fall within the original object. The slice specification should be appended to an object name, for example: a704eeae-97f2-4f30-91a4-d4473956366b/000001ad[264+1000] -selects only bytes 264..1263 from the original object. As an -abbreviation, the slice syntax +selects only bytes 264..1263 from the original object. + +The slice syntax [] -is shorthand for - [0+] -In place of a traditional slice, the annotation - [=] -may be used. This is somewhat similar to specifying [], but +indicates that all bytes of the object are to be used, but additionally asserts that the referenced object is exactly -bytes long--that is, this slice syntax does not change the bytes -returned at all, but can be used to provide information about the -underlying object store. +bytes long. Older versions of Cumulus can also use the syntax + [=] +as a synonym for length assertions, but this notation is deprecated. + +(In older versions of the format, the syntax [] was a shorthand +for [0+]: that is, select the first bytes of the object +but make no assertions about the overall size. The backup tool has not +generated such slices since v0.8.) Both a checksum and a slice can be used. In this case, the checksum is given first, followed by the slice. The checksum is computed over the @@ -176,7 +178,7 @@ object must have a slice specification appended to indicate the size of the object. For example zero[1024] represents a block consisting of 1024 null bytes. A checksum should not -be given. The slice syntax should use the abbreviated length-only form. +be given. FILE METADATA LISTING