deny partial write for loop dev fd
authorDmitry Monakhov <[email protected]>
Tue, 16 Oct 2007 08:25:02 +0000 (01:25 -0700)
committerLinus Torvalds <[email protected]>
Tue, 16 Oct 2007 16:42:55 +0000 (09:42 -0700)
commit8268f5a7415d914fc855a86aa2284ac819dc6b2e
tree13628a6d3cb31f04472c4cccdc741979ecdf0ad0
parentafddba49d18f346e5cc2938b6ed7c512db18ca68
deny partial write for loop dev fd

Partial write can be easily supported by LO_CRYPT_NONE mode, but it is not
easy in LO_CRYPT_CRYPTOAPI case, because of its block nature.  I don't know
who still used cryptoapi, but theoretically it is possible.  So let's leave
things as they are.  Loop device doesn't support partial write before
Nick's "write_begin/write_end" patch set, and let's it behave the same way
after.

Signed-off-by: Dmitriy Monakhov <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/block/loop.c