[stgt] [PATCH 1/1] tgtd: allow 'immutable' files and have them become read-only LUNs.
ronniesahlberg at gmail.com
Tue Oct 12 07:35:42 CEST 2010
Agree that it is suboptimal, but changing the signature would have
been more intrusive.
Do you want to to re-do the patch differently to pass flags to the
Or optionally, the same functionality could be provided instead
through a new bs_rdonly.c backend.
Do you want to to implement a replacement patch?
On Tue, Oct 12, 2010 at 12:20 PM, FUJITA Tomonori
<fujita.tomonori at lab.ntt.co.jp> wrote:
> On Sun, 10 Oct 2010 16:28:29 +1100
> ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
>> Please find attached a small patch to the three bs_*.c files used for
>> SBC and MMC devices.
>> The patch changes the *_open() function in such way that if the normal
>> open for O_RDWR fails with EACCES,
>> we try to open the file with O_RDONLY instead, and set the LUN to read-only.
> Applied, thanks.
> Doesn't look pretty. It's better if we can use the proper flag for the
> first open(). But it needs more changes. This patch is trivial so I
> merged it.
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