const VOLSETINFO = 126;
const VOLXLISTPARTITIONS= 127;
const VOLFORWARDMULTIPLE= 128;
+const VOLGETSIZE = 65537;
const PARTVALID = 0x01;
const VOK = 0x02;
IN uint32_t spare0,
IN restoreCookie *cookie,
OUT multi_results *results) = VOLFORWARDMULTIPLE;
+
+struct volintSize {
+ uint64_t dump_size;
+};
+GetSize(
+ IN int32_t fromTrans,
+ IN int32_t fromDate,
+ OUT volintSize *size
+) = VOLGETSIZE;
o.where(struct.name + "::" + m.name)
if m.is_single_int32():
o.rxsrc("\trxrpc_enc(call, p->", m.name, ");\n")
+ elif m.is_single_int64():
+ o.rxsrc("\trxrpc_enc(call, p->", m.name, " >> 32);\n")
+ o.rxsrc("\trxrpc_enc(call, (uint32_t)p->", m.name, ");\n")
elif m.is_single_struct():
o.rxsrc("\trxgen_encode_", m.ty.name, "(call, &p->", m.name, ");\n")
elif m.is_array():
o.where(struct.name + "::" + m.name)
if m.is_single_int32():
o.rxsrc("\tp->", m.name, " = rxrpc_dec(call);\n")
+ elif m.is_single_int64():
+ o.rxsrc("\tp->", m.name, " = (uint64_t)rxrpc_dec(call) << 32;\n")
+ o.rxsrc("\tp->", m.name, " |= (uint64_t)rxrpc_dec(call);\n")
elif m.is_single_struct():
o.rxsrc("\trxgen_decode_", m.ty.name, "(call, &p->", m.name, ");\n")
elif m.is_array():
elif name in self.typedefs:
typespec = self.typedefs[name].typespec
else:
- raise RuntimeError("Undefined type requested" + name);
+ raise RuntimeError("Undefined type requested '" + name + "'");
if not isinstance(typespec, xdr_type):
- raise TypeError("Retrieved type object is not xdr_type" + name + str(typespec));
+ raise TypeError("Retrieved type object is not xdr_type " + name + str(typespec));
typespec.referenced = True
return typespec
def add_proc(self, proc):
if not isinstance(proc, xdr_proc):
- raise KeyError("proc is not an xdr_proc", name, proc);
+ raise KeyError("proc is not an xdr_proc ", name, proc);
name = proc.name
if name in self.func_names:
self.error("Proc {:s} already exists".format(name))