14 #include <linux/sched.h>
20 static int afs_vl_abort_to_error(
u32 abort_code)
61 static int afs_deliver_vl_get_entry_by_xxx(
struct afs_call *call,
82 for (loop = 0; loop < 64; loop++)
84 entry->
name[loop] = 0;
90 for (loop = 0; loop < 8; loop++)
91 entry->
servers[loop].s_addr = *bp++;
95 for (loop = 0; loop < 8; loop++) {
131 .name =
"VL.GetEntryByName",
132 .deliver = afs_deliver_vl_get_entry_by_xxx,
133 .abort_to_error = afs_vl_abort_to_error,
141 .name =
"VL.GetEntryById",
142 .deliver = afs_deliver_vl_get_entry_by_xxx,
143 .abort_to_error = afs_vl_abort_to_error,
157 size_t volnamesz, reqsz, padsz;
162 volnamesz =
strlen(volname);
163 padsz = (4 - (volnamesz & 3)) & 3;
164 reqsz = 8 + volnamesz + padsz;
178 *bp++ =
htonl(volnamesz);
179 memcpy(bp, volname, volnamesz);
181 memset((
void *) bp + volnamesz, 0, padsz);
193 afs_voltype_t voltype,
214 *bp++ =
htonl(volid);
215 *bp =
htonl(voltype);