[stgt] [PATCH 1/1] enhance tgtimg to create media for DVD emulation
ronniesahlberg at gmail.com
Fri Apr 2 03:27:34 CEST 2010
On Fri, Apr 2, 2010 at 12:02 PM, FUJITA Tomonori
<fujita.tomonori at lab.ntt.co.jp> wrote:
> On Fri, 2 Apr 2010 10:29:22 +1100
> ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
>> Please find attached a patch to tgtimg and its manpage to describe the use of
>> tgtimg to create media for the dvd emulation.
> From a quick look, tgtimg tools create a zero-size file, right?
> What is the further plan? We need metadata for a dvd image file? If
> so, how can we store (targets.conf or etc)?
It creates an empty file which tgtd then treats as a burnable dvd+r.
This can just as well be done by running "touch" to create an empry
file, but I think it would be
nice if one would use tgtimg for all devices.
I would then create similar code for tgtimg to create a disk device.
Just creating the file and writing zero to the entire file, just like
dd would do.
Metadata is a different topic. As you say, xattr is difficult to use
in a unified way to store things because of SSC requiring so much
I will leave metadata in targets.conf for now until there is consensus
on how to handle it in an acceptable way for MMC and SBC.
Perhaps one could use *.tgtd-metadata files to store the metadata for
MMC and SBC devices isntead of xattr?
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt