File: magic

package info (click to toggle)
swift 2.36.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,092 kB
  • sloc: python: 286,210; javascript: 1,059; sh: 619; pascal: 295; makefile: 81; xml: 32
file content (20 lines) | stat: -rw-r--r-- 725 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#-------------------------------------------------------------------------------
# Openstack swift
# Note: add this snippet to either /etc/magic or ~/.magic
#-------------------------------------------------------------------------------
# gzip compressed
0 beshort 0x1f8b
# compress method: deflate, flags: FNAME
>&0 beshort 0x0808
# skip ahead another 6 (MTIME, XLF, OS); read FNAME
>>&6 search/0x40 \0
# Skip ahead five; should cover
#   00    -- uncompressed block
#   06 00 -- ... of length 6
#   f9 ff -- (one's complement of length)
>>>&5 string/4 R1NG     Swift ring,
>>>>&0 clear x
>>>>&0 beshort 1        version 1
>>>>&0 beshort 2        version 2
>>>>&0 default x
>>>>>&0 beshort x       unknown version (0x%04x)