char partName[16];
};
-struct state {
+struct fssync_state {
afs_int32 reason;
struct salv_state * sop;
};
-static int common_prolog(struct cmd_syndesc *, struct state *);
-static int common_salv_prolog(struct cmd_syndesc *, struct state *);
+static int common_prolog(struct cmd_syndesc *, struct fssync_state *);
+static int common_salv_prolog(struct cmd_syndesc *, struct fssync_state *);
-static int do_salvop(struct state *, afs_int32 command, SYNC_response * res);
+static int do_salvop(struct fssync_state *, afs_int32 command, SYNC_response * res);
static char * response_code_to_string(afs_int32);
static char * command_code_to_string(afs_int32);
}
static int
-common_prolog(struct cmd_syndesc * as, struct state * state)
+common_prolog(struct cmd_syndesc * as, struct fssync_state * state)
{
struct cmd_item *ti;
VolumePackageOptions opts;
}
static int
-common_salv_prolog(struct cmd_syndesc * as, struct state * state)
+common_salv_prolog(struct cmd_syndesc * as, struct fssync_state * state)
{
struct cmd_item *ti;
}
static int
-do_salvop(struct state * state, afs_int32 command, SYNC_response * res)
+do_salvop(struct fssync_state * state, afs_int32 command, SYNC_response * res)
{
afs_int32 code;
SALVSYNC_response_hdr hdr_l, *hdr;
static int
OpStats(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_salv_prolog(as, &state);
static int
OpSalvage(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_salv_prolog(as, &state);
static int
OpCancel(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_salv_prolog(as, &state);
static int
OpCancelAll(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_salv_prolog(as, &state);
static int
OpRaisePrio(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_salv_prolog(as, &state);
static int
OpQuery(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_salv_prolog(as, &state);
char partName[16];
};
-struct state {
+struct fssync_state {
afs_int32 reason;
struct volop_state * vop;
};
static int fssd_argc;
#endif
-static int common_prolog(struct cmd_syndesc *, struct state *);
-static int common_volop_prolog(struct cmd_syndesc *, struct state *);
+static int common_prolog(struct cmd_syndesc *, struct fssync_state *);
+static int common_volop_prolog(struct cmd_syndesc *, struct fssync_state *);
-static int do_volop(struct state *, afs_int32 command, SYNC_response * res);
+static int do_volop(struct fssync_state *, afs_int32 command,
+ SYNC_response * res);
static int VolOnline(struct cmd_syndesc * as, void * rock);
static int VolOffline(struct cmd_syndesc * as, void * rock);
#endif /* !AFS_DEMAND_ATTACH_FS */
static int
-common_prolog(struct cmd_syndesc * as, struct state * state)
+common_prolog(struct cmd_syndesc * as, struct fssync_state * state)
{
struct cmd_item *ti;
VolumePackageOptions opts;
}
static int
-common_volop_prolog(struct cmd_syndesc * as, struct state * state)
+common_volop_prolog(struct cmd_syndesc * as, struct fssync_state * state)
{
struct cmd_item *ti;
}
static int
-do_volop(struct state * state, afs_int32 command, SYNC_response * res)
+do_volop(struct fssync_state * state, afs_int32 command, SYNC_response * res)
{
afs_int32 code;
SYNC_PROTO_BUF_DECL(res_buf);
static int
VolOnline(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolOffline(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolMode(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolDetach(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolBreakCBKs(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolMove(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolList(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolLeaveOff(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolForceAttach(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolForceError(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
common_volop_prolog(as, &state);
static int
VolQuery(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
SYNC_PROTO_BUF_DECL(res_buf);
SYNC_response res;
Volume v;
static int
VolHdrQuery(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
SYNC_PROTO_BUF_DECL(res_buf);
SYNC_response res;
VolumeDiskData v;
static int
VolOpQuery(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
SYNC_PROTO_BUF_DECL(res_buf);
SYNC_response res;
FSSYNC_VolOp_info vop;
}
static int
-vn_prolog(struct cmd_syndesc * as, struct state * state)
+vn_prolog(struct cmd_syndesc * as, struct fssync_state * state)
{
struct cmd_item *ti;
}
static int
-do_vnqry(struct state * state, SYNC_response * res)
+do_vnqry(struct fssync_state * state, SYNC_response * res)
{
afs_int32 code;
int command = FSYNC_VOL_QUERY_VNODE;
static int
VnQuery(struct cmd_syndesc * as, void * rock)
{
- struct state state;
+ struct fssync_state state;
SYNC_PROTO_BUF_DECL(res_buf);
SYNC_response res;
Vnode v;
afs_int32 code;
int command;
struct cmd_item *ti;
- struct state state;
+ struct fssync_state state;
SYNC_PROTO_BUF_DECL(res_buf);
SYNC_response res;
FSSYNC_StatsOp_hdr scom;
VGCQuery(struct cmd_syndesc * as, void * rock)
{
afs_int32 code;
- struct state state;
+ struct fssync_state state;
char * partName;
VolumeId volid;
FSSYNC_VGQry_response_t q_res;
VGCAdd(struct cmd_syndesc * as, void * rock)
{
afs_int32 code;
- struct state state;
+ struct fssync_state state;
char * partName;
VolumeId parent, child;
struct cmd_item *ti;
VGCDel(struct cmd_syndesc * as, void * rock)
{
afs_int32 code;
- struct state state;
+ struct fssync_state state;
char * partName;
VolumeId parent, child;
struct cmd_item *ti;
VGCScan(struct cmd_syndesc * as, void * rock)
{
afs_int32 code;
- struct state state;
+ struct fssync_state state;
char * partName;
struct cmd_item *ti;
VGCScanAll(struct cmd_syndesc * as, void * rock)
{
afs_int32 code;
- struct state state;
+ struct fssync_state state;
common_prolog(as, &state);
fprintf(stderr, "calling FSYNC_VCGScanAll\n");