~ubuntu-branches/ubuntu/gutsy/evms/gutsy

« back to all changes in this revision

Viewing changes to engine/Plugins/defsegmgr/embedded.h

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-09-14 19:32:30 UTC
  • mfrom: (2.1.13 edgy)
  • Revision ID: james.westby@ubuntu.com-20060914193230-4b1pmy0coqk81sqa
Tags: 2.5.5-18
* Apply patches from upstream:
  * cli_query_segfault.patch, fixes a segfault in the CLI when doing a
    query.
  * cli_reload_options.patch, reloads the right option descriptors after
    a change.
  * ntfs_unmkfs.patch, fixes a bug in the wiping of NTFS file systems.
  * raid5_remove_spare_fix.patch + raid5_remove_spare_fix_2.patch, lets the
    user remove a spare if resync does not run.
  * raid5_algorithm.patch, makes EVMS heed the parity algorithm the user
    selects when creating a RAID-5 array.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *
3
 
 *   Copyright (c) International Business Machines  Corp., 2000
4
 
 *
5
 
 *   This program is free software;  you can redistribute it and/or modify
6
 
 *   it under the terms of the GNU General Public License as published by
7
 
 *   the Free Software Foundation; either version 2 of the License, or
8
 
 *   (at your option) any later version.
9
 
 *
10
 
 *   This program is distributed in the hope that it will be useful,
11
 
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
12
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
13
 
 *   the GNU General Public License for more details.
14
 
 *
15
 
 *   You should have received a copy of the GNU General Public License
16
 
 *   along with this program;  if not, write to the Free Software
17
 
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
 
 *
19
 
 *   Module: embedded.h
20
 
 *
21
 
 */
22
 
 
23
 
#ifndef EMBEDDED_HEADER
24
 
#define EMBEDDED_HEADER 1
25
 
 
26
 
DISKSEG * alloc_diskseg_object( LOGICALDISK *ld );
27
 
 
28
 
DISKSEG * build_segment_for_embedded_partition( LOGICALDISK       *ld,
29
 
                                                DISKSEG           *msdos_seg,
30
 
                                                u_int32_t          start,
31
 
                                                u_int32_t          size,
32
 
                                                u_int32_t          sys_id,
33
 
                                                u_int32_t          ptable_index,
34
 
                                                u_int32_t          minor );
35
 
 
36
 
 
37
 
DISKSEG * get_matching_segment( dlist_t seglist, lba_t start, sector_count_t size );
38
 
 
39
 
int       remove_embedded_partitions_from_disk( LOGICALDISK *ld, dlist_t recovery_list );
40
 
 
41
 
int       read_embedded_geometry( LOGICALDISK *ld, geometry_t *geometry );
42
 
 
43
 
#endif