Lines Matching +full:vs +full:- +full:n +full:- +full:supply
6 The sub-namespace td has type definitions (qid, stat) and values
24 dotu-specific members (used only when packing for dotu/dotl and
47 wirestat objects, which are basically size-counted pre-sequenced
48 stat objects. The pre-sequencing uses:
68 The sub-namespace rrd has request (Tversion, Topen, etc) and
101 course are the pre-filled fields in a Tversion PFOD instance).
151 a downgrade_to() method that gets you a possibly-downgraded instance.
206 >>> utf8 = os.strerror(errno.ENOENT).encode('utf-8')
213 >>> pkt[-len(utf8):] == utf8
278 packet is too short. (Note that we need a hack for py2k vs py3k
285 >>> b2s = lambda x: x.decode('utf-8') if py3k else x
331 valid, even if you supply noerror=True. This is because we can
340 The same applies to much-too-short packets even if noerror is set.
341 Specifically, if the (post-"size") header shortens down to the empty
367 data (they're represented this way in read()-of-directory data,
410 Similarly, use unpack_dirent to unpack the result of a dot-L
458 # 'data': b'rawdata' }) -- XXX won't work (yet?)
498 If rodata ("read-only data") is True we make sure not
504 # False conditionals don't need to be filled-in.
509 # sub-coder's name ('version') is the test item.
517 # sub-coders's repeat item ('count') is the
574 # define rich-comparison operators, so we can, e.g., test vers > plain
590 Downgrade from this protocol to a not-greater one.
598 other_name = other_name.decode('utf-8', 'surrogateescape')
618 "pack up a pfod or fcall-and-arguments"
714 (1 byte) and data (len(bstring)-1 bytes). If len(bstring)
720 vdict['dsize'] = max(0, len(bstring) - 1)
766 Produce the next td.stat object from byte-string,
789 Dirents (dot-L only) are easy to pack, but we provide
797 Produces the next td.dirent object from byte-string,
827 ret = ret.encode('utf-8')
838 # builtin. This and stat are the only variable-length
839 # decoders, and this is the only recursively-variable-length
890 # a (previously encoded, or future-decoded) stat.
895 # This defines a dirent decoder, which has a dot-L specific format.
912 # N.B.: this is largely a slightly more rigidly formatted variant of
933 long f_bavail; /* free blocks avail to non-superuser */
1079 mode - Linux chmod(2) mode bits.
1081 uid, gid - New owner, group of the file as described in Linux chown(2).
1083 size - New file size as handled by Linux truncate(2).
1085 atime_sec, atime_nsec - Time of last file access.
1087 mtime_sec, mtime_nsec - Time of last file modification.
1139 Directory entries are represented as variable-length records:
1188 whole-file POSIX record locks. v9fs does not implement
1192 properties, pass-through servers must be implemented
1276 in both .u and .L (unlike most .u-specific features).
1291 flush aborts an in-flight request referenced by oldtag, if any.
1323 return, the fid refers to the then-created file.
1372 - 'word', 'word*', or 'label':
1375 - 'aux': ':' followed by '\w+' (used for :auto annotation)
1377 - 'type':
1381 - '(', ')', '{', '}': themeselves
1419 print('error: unmatched character(s) in input\n{0}\n{1}^'.format(
1425 print('error: unmatched character(s) in input\n{0}\n{1}^'.format(
1437 tok = _Token('label', item[0:-1], item)
1439 tok = _Token('word*', item[0:-1], item)
1442 if item[-1] != ']':
1445 tok = _Token('type', item[1:-1], item)
1459 Parse "expression-ish" items, which is a list of:
1468 or decode a fixed-size field of <integer> bytes, using the
1473 of these expands to a variable-size encode/decode. See the
1478 earlier name provides a repeat-count.
1480 Inside the parens we get a name[type] sub-expressino. This may
1522 case for string types, and another for using an earlier-defined
1533 # and the sub-sequence is sub. But if cls is None
1558 Note that the conditional is buried in the sub-coder for
1559 name2. It must be passed through anyway in case the sub-
1560 coder is only partly conditional. If the sub-coder is
1561 fully conditional, each sub-coding uses or produces no
1582 # count*(data[type]). The "sub-coder" is handled directly
1585 # As a peculiar side effect, all bytes-repeats cause the
1626 # N.B.: a repeat cannot have an auxiliary info (yet?).
1715 print('Internal error while parsing {0}:\n'
1716 ' {1}\n'
1717 '(at line offset +{2}, discounting \\-newline)\n'
1718 'The original line in question reads:\n'
1728 and possibly-empty comment; these are our arguments.
1750 using backslach-newline if needed).
1777 - The name of the protocol option such as Tversion,
1779 - The protocol version, if any (.u or .L).
1780 - The value, if specified. If no value is specified
1782 - The expression to parse.
1815 just size - 5. We can't express this in our mini language,
1816 so we just hard-code the sequencer and pfod.
1823 seq = sequencer.Sequencer('Header-pack')
1831 print('Header-pack:', file=sys.stderr)
1835 seq = sequencer.Sequencer('Header-unpack')
1839 print('Header-unpack:', file=sys.stderr)
1893 # Hook up PFOD's for each protocol object -- for
1895 # They go in the rrd name-space, and also in dictionaries
1896 # per-protocol here, with the lookup pointing to a _PackInfo
1904 # (This is sort-of-wrong for Rerror vs Rlerror, but we
1935 # Currently we look up by text-string, in lowercase.
1957 will be on a string-ified, lower-cased version of the vers_string
1961 vers_string = vers_string.decode('utf-8', 'surrogateescape')
1975 'append-only'
1984 td.QTAPPEND: 'append-only',