diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-01-25 10:07:14 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 13:58:08 -0400 |
commit | ae30c994a4bb70510fdcb9e7223805bb2a8bc9ee (patch) | |
tree | dcdcdf44b408047fe80852ea749996f9b5b2f9ae /drivers/scsi/osd | |
parent | 3e08613037fd4ec0b716a215602c4bdb3d0d9171 (diff) |
[SCSI] libosd: Not implemented commands
Some commands declared in header are not yet implemented. Put them
as stubs in .c file, just so they take their place in the file
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Reviewed-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/osd')
-rw-r--r-- | drivers/scsi/osd/osd_initiator.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.c index 5d9457b7e455..3fd021a57e59 100644 --- a/drivers/scsi/osd/osd_initiator.c +++ b/drivers/scsi/osd/osd_initiator.c | |||
@@ -343,6 +343,9 @@ static void _osd_req_encode_common(struct osd_request *or, | |||
343 | /* | 343 | /* |
344 | * Device commands | 344 | * Device commands |
345 | */ | 345 | */ |
346 | /*TODO: void osd_req_set_master_seed_xchg(struct osd_request *, ...); */ | ||
347 | /*TODO: void osd_req_set_master_key(struct osd_request *, ...); */ | ||
348 | |||
346 | void osd_req_format(struct osd_request *or, u64 tot_capacity) | 349 | void osd_req_format(struct osd_request *or, u64 tot_capacity) |
347 | { | 350 | { |
348 | _osd_req_encode_common(or, OSD_ACT_FORMAT_OSD, &osd_root_object, 0, | 351 | _osd_req_encode_common(or, OSD_ACT_FORMAT_OSD, &osd_root_object, 0, |
@@ -373,6 +376,10 @@ void osd_req_flush_obsd(struct osd_request *or, | |||
373 | } | 376 | } |
374 | EXPORT_SYMBOL(osd_req_flush_obsd); | 377 | EXPORT_SYMBOL(osd_req_flush_obsd); |
375 | 378 | ||
379 | /*TODO: void osd_req_perform_scsi_command(struct osd_request *, | ||
380 | const u8 *cdb, ...); */ | ||
381 | /*TODO: void osd_req_task_management(struct osd_request *, ...); */ | ||
382 | |||
376 | /* | 383 | /* |
377 | * Partition commands | 384 | * Partition commands |
378 | */ | 385 | */ |
@@ -399,6 +406,10 @@ void osd_req_remove_partition(struct osd_request *or, osd_id partition) | |||
399 | } | 406 | } |
400 | EXPORT_SYMBOL(osd_req_remove_partition); | 407 | EXPORT_SYMBOL(osd_req_remove_partition); |
401 | 408 | ||
409 | /*TODO: void osd_req_set_partition_key(struct osd_request *, | ||
410 | osd_id partition, u8 new_key_id[OSD_CRYPTO_KEYID_SIZE], | ||
411 | u8 seed[OSD_CRYPTO_SEED_SIZE]); */ | ||
412 | |||
402 | static int _osd_req_list_objects(struct osd_request *or, | 413 | static int _osd_req_list_objects(struct osd_request *or, |
403 | __be16 action, const struct osd_obj_id *obj, osd_id initial_id, | 414 | __be16 action, const struct osd_obj_id *obj, osd_id initial_id, |
404 | struct osd_obj_id_list *list, unsigned nelem) | 415 | struct osd_obj_id_list *list, unsigned nelem) |
@@ -464,6 +475,11 @@ EXPORT_SYMBOL(osd_req_flush_partition); | |||
464 | /* | 475 | /* |
465 | * Collection commands | 476 | * Collection commands |
466 | */ | 477 | */ |
478 | /*TODO: void osd_req_create_collection(struct osd_request *, | ||
479 | const struct osd_obj_id *); */ | ||
480 | /*TODO: void osd_req_remove_collection(struct osd_request *, | ||
481 | const struct osd_obj_id *); */ | ||
482 | |||
467 | int osd_req_list_collection_objects(struct osd_request *or, | 483 | int osd_req_list_collection_objects(struct osd_request *or, |
468 | const struct osd_obj_id *obj, osd_id initial_id, | 484 | const struct osd_obj_id *obj, osd_id initial_id, |
469 | struct osd_obj_id_list *list, unsigned nelem) | 485 | struct osd_obj_id_list *list, unsigned nelem) |
@@ -473,6 +489,8 @@ int osd_req_list_collection_objects(struct osd_request *or, | |||
473 | } | 489 | } |
474 | EXPORT_SYMBOL(osd_req_list_collection_objects); | 490 | EXPORT_SYMBOL(osd_req_list_collection_objects); |
475 | 491 | ||
492 | /*TODO: void query(struct osd_request *, ...); V2 */ | ||
493 | |||
476 | void osd_req_flush_collection(struct osd_request *or, | 494 | void osd_req_flush_collection(struct osd_request *or, |
477 | const struct osd_obj_id *obj, enum osd_options_flush_scope_values op) | 495 | const struct osd_obj_id *obj, enum osd_options_flush_scope_values op) |
478 | { | 496 | { |
@@ -481,6 +499,9 @@ void osd_req_flush_collection(struct osd_request *or, | |||
481 | } | 499 | } |
482 | EXPORT_SYMBOL(osd_req_flush_collection); | 500 | EXPORT_SYMBOL(osd_req_flush_collection); |
483 | 501 | ||
502 | /*TODO: void get_member_attrs(struct osd_request *, ...); V2 */ | ||
503 | /*TODO: void set_member_attrs(struct osd_request *, ...); V2 */ | ||
504 | |||
484 | /* | 505 | /* |
485 | * Object commands | 506 | * Object commands |
486 | */ | 507 | */ |
@@ -496,6 +517,11 @@ void osd_req_remove_object(struct osd_request *or, struct osd_obj_id *obj) | |||
496 | } | 517 | } |
497 | EXPORT_SYMBOL(osd_req_remove_object); | 518 | EXPORT_SYMBOL(osd_req_remove_object); |
498 | 519 | ||
520 | |||
521 | /*TODO: void osd_req_create_multi(struct osd_request *or, | ||
522 | struct osd_obj_id *first, struct osd_obj_id_list *list, unsigned nelem); | ||
523 | */ | ||
524 | |||
499 | void osd_req_write(struct osd_request *or, | 525 | void osd_req_write(struct osd_request *or, |
500 | const struct osd_obj_id *obj, struct bio *bio, u64 offset) | 526 | const struct osd_obj_id *obj, struct bio *bio, u64 offset) |
501 | { | 527 | { |
@@ -507,6 +533,15 @@ void osd_req_write(struct osd_request *or, | |||
507 | } | 533 | } |
508 | EXPORT_SYMBOL(osd_req_write); | 534 | EXPORT_SYMBOL(osd_req_write); |
509 | 535 | ||
536 | /*TODO: void osd_req_append(struct osd_request *, | ||
537 | const struct osd_obj_id *, struct bio *data_out); */ | ||
538 | /*TODO: void osd_req_create_write(struct osd_request *, | ||
539 | const struct osd_obj_id *, struct bio *data_out, u64 offset); */ | ||
540 | /*TODO: void osd_req_clear(struct osd_request *, | ||
541 | const struct osd_obj_id *, u64 offset, u64 len); */ | ||
542 | /*TODO: void osd_req_punch(struct osd_request *, | ||
543 | const struct osd_obj_id *, u64 offset, u64 len); V2 */ | ||
544 | |||
510 | void osd_req_flush_object(struct osd_request *or, | 545 | void osd_req_flush_object(struct osd_request *or, |
511 | const struct osd_obj_id *obj, enum osd_options_flush_scope_values op, | 546 | const struct osd_obj_id *obj, enum osd_options_flush_scope_values op, |
512 | /*V2*/ u64 offset, /*V2*/ u64 len) | 547 | /*V2*/ u64 offset, /*V2*/ u64 len) |