aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/osd/osd_initiator.c35
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
346void osd_req_format(struct osd_request *or, u64 tot_capacity) 349void 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}
374EXPORT_SYMBOL(osd_req_flush_obsd); 377EXPORT_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}
400EXPORT_SYMBOL(osd_req_remove_partition); 407EXPORT_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
402static int _osd_req_list_objects(struct osd_request *or, 413static 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
467int osd_req_list_collection_objects(struct osd_request *or, 483int 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}
474EXPORT_SYMBOL(osd_req_list_collection_objects); 490EXPORT_SYMBOL(osd_req_list_collection_objects);
475 491
492/*TODO: void query(struct osd_request *, ...); V2 */
493
476void osd_req_flush_collection(struct osd_request *or, 494void 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}
482EXPORT_SYMBOL(osd_req_flush_collection); 500EXPORT_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}
497EXPORT_SYMBOL(osd_req_remove_object); 518EXPORT_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
499void osd_req_write(struct osd_request *or, 525void 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}
508EXPORT_SYMBOL(osd_req_write); 534EXPORT_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
510void osd_req_flush_object(struct osd_request *or, 545void 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)