summaryrefslogtreecommitdiffstats
path: root/sys/ia64/conf
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2009-02-15 22:18:16 +0000
committermarcel <marcel@FreeBSD.org>2009-02-15 22:18:16 +0000
commite6f532ab6f4817606ad510d637a48b0f022a729d (patch)
tree8a7d026a995a0c217189ebfece17974389cf09df /sys/ia64/conf
parent19b1b2f405eb019be397a5920527ac26ecc07624 (diff)
downloadFreeBSD-src-e6f532ab6f4817606ad510d637a48b0f022a729d.zip
FreeBSD-src-e6f532ab6f4817606ad510d637a48b0f022a729d.tar.gz
Add method precheck to the g_part interface. The precheck
method allows schemes to reject the ctl request, pre-check the parameters and/or modify/set parameters. There are 2 use cases that triggered the addition: 1. When implementing a R/O scheme, deletes will still happen to the in-memory representation. The scheme is not involved in that operation. The pre-check method can be used to fail the delete up-front. Without this the write to disk will typically fail, but at that time the delete already happened. 2. The EBR scheme uses a linked list to record slices. There's no index. The EBR scheme defines the index as a function of the start LBA of the partition. The add verb picks an index for the range and then invokes the add method of the scheme to fill in the blanks. It is too late for the add method to change the index. The pre-check is used to set the index up-front. This also (silently) overrides/nullifies any (pointless) user-specified index value.
Diffstat (limited to 'sys/ia64/conf')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud