/* * osd_sec.h - OSD security manager API * * Copyright (C) 2008 Panasas Inc. All rights reserved. * * Authors: * Boaz Harrosh * Benny Halevy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * */ #ifndef __OSD_SEC_H__ #define __OSD_SEC_H__ #include #include /* * Contains types and constants of osd capabilities and security * encoding/decoding. * API is trying to keep security abstract so initiator of an object * based pNFS client knows as little as possible about security and * capabilities. It is the Server's osd-initiator place to know more. * Also can be used by osd-target. */ void osd_sec_encode_caps(void *caps, ...);/* NI */ void osd_sec_init_nosec_doall_caps(void *caps, const struct osd_obj_id *obj, bool is_collection, const bool is_v1); bool osd_is_sec_alldata(struct osd_security_parameters *sec_params); /* Conditionally sign the CDB according to security setting in ocdb * with cap_key */ void osd_sec_sign_cdb(struct osd_cdb *ocdb, const u8 *cap_key); /* Unconditionally sign the BIO data with cap_key. * Check for osd_is_sec_alldata() was done prior to calling this. */ void osd_sec_sign_data(void *data_integ, struct bio *bio, const u8 *cap_key); /* Version independent copy of caps into the cdb */ void osd_set_caps(struct osd_cdb *cdb, const void *caps); #endif /* ndef __OSD_SEC_H__ */ d>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-02-05 18:10:35 +0100
committerJens Axboe <axboe@fb.com>2017-02-06 09:34:46 -0700
commiteeeefd41843218c55a8782a6920f044d9bf6207a (patch)
treec342eac46626e62745aa8e1a982626efca8b121d /net/6lowpan/6lowpan_i.h
parentc14024dbb156c8392908aaa822097d27c6af8ec8 (diff)
block: don't try Write Same from __blkdev_issue_zeroout
Write Same can return an error asynchronously if it turns out the underlying SCSI device does not support Write Same, which makes a proper fallback to other methods in __blkdev_issue_zeroout impossible. Thus only issue a Write Same from blkdev_issue_zeroout an don't try it at all from __blkdev_issue_zeroout as a non-invasive workaround. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Junichi Nomura <j-nomura@ce.jp.nec.com> Fixes: e73c23ff ("block: add async variant of blkdev_issue_zeroout") Tested-by: Junichi Nomura <j-nomura@ce.jp.nec.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'net/6lowpan/6lowpan_i.h')