]> git.neil.brown.name Git - history.git/commit
[PATCH] When a partition is claimed, claim the whole device
authorAndrew Morton <akpm@osdl.org>
Wed, 20 Aug 2003 17:26:48 +0000 (10:26 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 20 Aug 2003 17:26:48 +0000 (10:26 -0700)
commitf57dea9107c028b27c8279c506e6565bec398852
treecedec46e23137bcac2d5d2f82907a13e69c4be73
parentd55158b5d4790fd54e4f1b707772e891513d68d1
[PATCH] When a partition is claimed, claim the whole device

From: NeilBrown <neilb@cse.unsw.edu.au>

Current devices can be 'claimed' by filesystems (when mounting) or
md/raid (when being included in an array) or 'raw' or ....
This stop concurrent access by these systems.

However it is still possible for one system to claim the whole device
and a second system to claim one partition, which is not good.

With this patch, when a partition is claimed, the whole device is
claimed for partitioning.  So you cannot have a partition and the
whole devices claimed at the same time (except if the whole device
is claimed for partitioning).
fs/block_dev.c