Nicholas Bellinger 0f5e2ec46d target/file: Add DIF protection init/format support
This patch adds support for DIF protection init/format support into
the FILEIO backend.

It involves using a seperate $FILE.protection for storing PI that is
opened via fd_init_prot() using the common pi_prot_type attribute.
The actual formatting of the protection is done via fd_format_prot()
using the common pi_prot_format attribute, that will populate the
initial PI data based upon the currently configured pi_prot_type.

Based on original FILEIO code from Sagi.

v1 changes:
  - Fix sparse warnings in fd_init_format_buf (Fengguang)

Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2014-01-19 02:11:33 +00:00
..
2013-11-27 01:03:27 +01:00
2013-12-06 08:30:18 -08:00
2013-11-19 15:53:02 -05:00
2013-11-07 19:24:20 +01:00
2013-11-27 01:03:27 +01:00
2013-11-15 14:05:15 -08:00
2013-11-18 15:35:09 -08:00
2013-12-06 08:30:18 -08:00
2013-12-02 10:12:01 -08:00