Skip to content

Commit

Permalink
osd-target: cdb_continuation definitions
Browse files Browse the repository at this point in the history
added cdb_continuation, cdb_continuation_descriptor, and
cdb_continuation_descriptor_header structs for continuation support

Signed-off-by: John A. Chandy <john.chandy@uconn.edu>
  • Loading branch information
joc02012 authored and Boaz Harrosh committed Mar 15, 2010
1 parent 6907f67 commit fab73de
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions osd-target/cdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* core osd functions in osd.c.
*
* Copyright (C) 2007 OSD Team <pvfs-osd@osc.edu>
* Copyright (C) 2010 University of Connecticut
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -33,6 +34,20 @@
/*
* Aggregate parameters for function calls in this file.
*/

struct cdb_continuation_descriptor {
uint16_t type;
uint32_t length;
union {
const void *desc_specific_hdr;
};
};

struct cdb_continuation {
uint32_t num_descriptors;
struct cdb_continuation_descriptor *descriptors;
};

struct command {
struct osd_device *osd;
uint8_t *cdb;
Expand All @@ -42,6 +57,7 @@ struct command {
struct getattr_list get_attr;
struct setattr_list set_attr;
const uint8_t *indata;
struct cdb_continuation cont;
uint64_t inlen;
uint8_t *outdata;
uint64_t outlen;
Expand Down
9 changes: 9 additions & 0 deletions osd-target/osd-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,13 @@ enum {
#define TICK_TRACE(x)
#endif

/* CDB continuation descriptors */

struct cdb_continuation_descriptor_header {
uint16_t type;
uint8_t reserved;
uint8_t pad_length;
uint32_t length;
};

#endif /* __OSD_TYPES_H */

0 comments on commit fab73de

Please sign in to comment.