• O
    storage: Add fs pool formatting · 27758859
    Osier Yang 提交于
    This patch adds the ability to make the filesystem for a filesystem
    pool during a pool build.
    
    The patch adds two new flags, no overwrite and overwrite, to control
    when mkfs gets executed.  By default, the patch preserves the
    current behavior, i.e., if no flags are specified, pool build on a
    filesystem pool only makes the directory on which the filesystem
    will be mounted.
    
    If the no overwrite flag is specified, the target device is checked
    to determine if a filesystem of the type specified in the pool is
    present.  If a filesystem of that type is already present, mkfs is
    not executed and the build call returns an error.  Otherwise, mkfs
    is executed and any data present on the device is overwritten.
    
    If the overwrite flag is specified, mkfs is always executed, and any
    existing data on the target device is overwritten unconditionally.
    27758859
Makefile.am 48.5 KB