Lines Matching refs:EXTRA
16 system crashes. The status of the operation is recorded in an extra field
39 - fixed-length (no file name) header with extra field (see below)
48 extra field has the necessary information to restore the start of the last
61 The extra field has the necessary information to find the end of the
93 Following is the definition of the extra field with all of the information
100 length is two bytes long. The gzip extra field two-byte identification is
101 "ap" for append. It is assumed that writing the extra field to the file is
102 an "atomic" operation. That is, either all of the extra field is written
104 point of updating the extra field. This is a reasonable assumption, since
105 the extra field is within the first 52 bytes of the file, which is smaller
109 Extra field (35 bytes):
136 stored as the low three bits of the final byte of the extra field after
149 - The top three bits of the last byte in the extra field are reserved and
157 - Load the extra field from the foo.gz file, and see if an operation was in
167 - Mark the foo.gz extra field with the append operation in progress.
169 stored block from the information in the extra field, in case a previous
175 - Write over the extra field (with a single write operation) with the new
186 - Rewrite the extra field marking foo.gz with a compression in process.
203 - Write over the extra field with the updated stored block offsets, bits
208 - Write over the extra field, marking foo.gz as complete.
309 4, /* there is an extra field (no file name) */
311 0, 0xff, /* no extra flags, no OS specified */
312 39, 0, 'a', 'p', 35, 0 /* extra field with "ap" subfield */
313 /* 35 is EXTRA, 39 is EXTRA + 4 */
318 /* initial gzip extra field content (52 == HEAD + EXTRA + 1) */
328 #define EXTRA sizeof(log_gzext) /* should be 35 */
405 /* Check the gzip header and read in the extra field, filling in the values in
407 expected. op is the current operation in progress last written to the extra
413 unsigned char buf[HEAD + EXTRA];
416 read(log->fd, buf, HEAD + EXTRA) != HEAD + EXTRA ||
432 /* Write over the extra field contents, marking the operation as op. Use fsync
440 unsigned char ext[EXTRA];
452 write(log->fd, ext, EXTRA) != EXTRA ? -1 : 0;
556 /* write the extra field, marking the log file as done, delete .add file */
803 /* Open foo.gz, verify the header, and load the extra field contents, after
806 extra, and body content of an empty foo.gz log file. If there is an error
809 this object (e.g. not a gzip file or does not contain the expected extra
837 write(log->fd, log_gzext, EXTRA) != EXTRA ||
846 /* verify log file and load extra field information */
919 /* see if we lost the lock -- if so get it again and reload the extra
1005 /* see if we lost the lock -- if so get it again and reload the extra