1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
/*
*
* Copyright (c) International Business Machines Corp., 2001
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Module: volume.h
*
*/
/*
* Global functions exported by volume.c
*/
/* External APIs provided by volume.c */
extern int evms_can_create_volume(object_handle_t object);
extern int evms_can_create_compatibility_volume(object_handle_t object);
extern int evms_can_set_volume_name(object_handle_t volume);
extern int evms_create_volume(object_handle_t object,
char * name);
extern int evms_set_volume_name(object_handle_t volume,
char * name);
extern int evms_create_compatibility_volume(object_handle_t object);
extern int evms_can_mkfs(object_handle_t volume,
plugin_handle_t fsim);
extern int evms_can_unmkfs(object_handle_t volume);
extern int evms_can_fsck(object_handle_t volume);
extern int evms_can_defrag(object_handle_t volume);
extern int evms_mkfs(object_handle_t volume,
plugin_handle_t fsim,
option_array_t * options);
extern int evms_unmkfs(object_handle_t volume);
extern int evms_fsck(object_handle_t volume,
option_array_t * options);
extern int evms_defrag(object_handle_t volume,
option_array_t * options);
extern int evms_get_volume_list(object_handle_t fsim,
handle_array_t * * volume_list);
/* Internal functions to share with other Engine source modules */
extern BOOLEAN is_volume_mounted(logical_volume_t * volume);
extern int get_evms_minor_number(uint * minor);
extern int get_compatibility_minor_number(uint * minor);
extern void free_option_array(option_array_t * options);
|