1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
freebsd/sys/geom/part
Marcel Moolenaar 7ca4fa83ec 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.
2009-02-15 22:18:16 +00:00
..
g_part_apm.c Fix g_part_dumpconf and g_part_name prototpyes. 2009-02-10 02:43:07 +00:00
g_part_bsd.c Fix g_part_*dumpconf to return void to match kobj definition. 2009-02-08 07:05:23 +00:00
g_part_ebr.c Add the EBR scheme. The EBR scheme supports the Extended Boot Records 2009-02-08 23:51:44 +00:00
g_part_gpt.c Fix g_part_dumpconf and g_part_name prototpyes. 2009-02-10 02:43:07 +00:00
g_part_if.m Add method precheck to the g_part interface. The precheck 2009-02-15 22:18:16 +00:00
g_part_mbr.c Add the EBR scheme. The EBR scheme supports the Extended Boot Records 2009-02-08 23:51:44 +00:00
g_part_pc98.c Fix g_part_dumpconf and g_part_name prototpyes. 2009-02-10 02:43:07 +00:00
g_part_vtoc8.c Fix g_part_dumpconf and g_part_name prototpyes. 2009-02-10 02:43:07 +00:00
g_part.c Add method precheck to the g_part interface. The precheck 2009-02-15 22:18:16 +00:00
g_part.h Add method precheck to the g_part interface. The precheck 2009-02-15 22:18:16 +00:00