Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Boaz Harrosh and committed by
James Bottomley
ae30c994 3e086130

+35
+35
drivers/scsi/osd/osd_initiator.c
··· 343 343 /* 344 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 349 void osd_req_format(struct osd_request *or, u64 tot_capacity) 347 350 { 348 351 _osd_req_encode_common(or, OSD_ACT_FORMAT_OSD, &osd_root_object, 0, ··· 376 373 } 377 374 EXPORT_SYMBOL(osd_req_flush_obsd); 378 375 376 + /*TODO: void osd_req_perform_scsi_command(struct osd_request *, 377 + const u8 *cdb, ...); */ 378 + /*TODO: void osd_req_task_management(struct osd_request *, ...); */ 379 + 379 380 /* 380 381 * Partition commands 381 382 */ ··· 405 398 _osd_req_encode_partition(or, OSD_ACT_REMOVE_PARTITION, partition); 406 399 } 407 400 EXPORT_SYMBOL(osd_req_remove_partition); 401 + 402 + /*TODO: void osd_req_set_partition_key(struct osd_request *, 403 + osd_id partition, u8 new_key_id[OSD_CRYPTO_KEYID_SIZE], 404 + u8 seed[OSD_CRYPTO_SEED_SIZE]); */ 408 405 409 406 static int _osd_req_list_objects(struct osd_request *or, 410 407 __be16 action, const struct osd_obj_id *obj, osd_id initial_id, ··· 475 464 /* 476 465 * Collection commands 477 466 */ 467 + /*TODO: void osd_req_create_collection(struct osd_request *, 468 + const struct osd_obj_id *); */ 469 + /*TODO: void osd_req_remove_collection(struct osd_request *, 470 + const struct osd_obj_id *); */ 471 + 478 472 int osd_req_list_collection_objects(struct osd_request *or, 479 473 const struct osd_obj_id *obj, osd_id initial_id, 480 474 struct osd_obj_id_list *list, unsigned nelem) ··· 489 473 } 490 474 EXPORT_SYMBOL(osd_req_list_collection_objects); 491 475 476 + /*TODO: void query(struct osd_request *, ...); V2 */ 477 + 492 478 void osd_req_flush_collection(struct osd_request *or, 493 479 const struct osd_obj_id *obj, enum osd_options_flush_scope_values op) 494 480 { ··· 498 480 _osd_req_encode_flush(or, op); 499 481 } 500 482 EXPORT_SYMBOL(osd_req_flush_collection); 483 + 484 + /*TODO: void get_member_attrs(struct osd_request *, ...); V2 */ 485 + /*TODO: void set_member_attrs(struct osd_request *, ...); V2 */ 501 486 502 487 /* 503 488 * Object commands ··· 517 496 } 518 497 EXPORT_SYMBOL(osd_req_remove_object); 519 498 499 + 500 + /*TODO: void osd_req_create_multi(struct osd_request *or, 501 + struct osd_obj_id *first, struct osd_obj_id_list *list, unsigned nelem); 502 + */ 503 + 520 504 void osd_req_write(struct osd_request *or, 521 505 const struct osd_obj_id *obj, struct bio *bio, u64 offset) 522 506 { ··· 532 506 or->out.total_bytes = bio->bi_size; 533 507 } 534 508 EXPORT_SYMBOL(osd_req_write); 509 + 510 + /*TODO: void osd_req_append(struct osd_request *, 511 + const struct osd_obj_id *, struct bio *data_out); */ 512 + /*TODO: void osd_req_create_write(struct osd_request *, 513 + const struct osd_obj_id *, struct bio *data_out, u64 offset); */ 514 + /*TODO: void osd_req_clear(struct osd_request *, 515 + const struct osd_obj_id *, u64 offset, u64 len); */ 516 + /*TODO: void osd_req_punch(struct osd_request *, 517 + const struct osd_obj_id *, u64 offset, u64 len); V2 */ 535 518 536 519 void osd_req_flush_object(struct osd_request *or, 537 520 const struct osd_obj_id *obj, enum osd_options_flush_scope_values op,