[stgt] [PATCH 1/1] tgtd: allow 'immutable' files and have them become read-only LUNs.

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Tue Oct 12 03:20:21 CEST 2010


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 mailing list