~ubuntu-branches/ubuntu/intrepid/parted/intrepid

« back to all changes in this revision

Viewing changes to libparted/fs/fat/count.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-24 14:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624143105-rd7yw67a9qnvh51i
Tags: 1.8.8.git.2008.03.24-7ubuntu1
* Resynchronise with Debian (LP: #237568). Remaining changes:
  - swap-uuid.dpatch: Create UUIDs on new swap partitions.
  - gptsync.dpatch: On Intel Mac systems, write a synced MBR rather than a
    protective MBR.
  - Add -fno-stack-protector on sparc.
  - sparc-new-label.dpatch: Fix sparc disk label generation. This is
    required for LDOM and parallel installations with Solaris 10.
  - loop-partitions.dpatch: Loop devices can only have one partition, so
    don't generate device names such as "/dev/loop0p1".
  - unpartitioned-disks.dpatch: Don't try to call BLKPG ioctls on
    unpartitionable disks (only implemented for loop devices at the
    moment), as they will always fail.
  - When building with gcc-4.3, add -Wno-array-bounds to CFLAGS.
  - Cell partition tables are misdetected as pc98, so disable pc98 support
    on powerpc.
  - array-bounds.dpatch: Backport patch from git to allow building with
    gcc-4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    libparted
3
 
    Copyright (C) 1999, 2000 Free Software Foundation, Inc.
 
3
    Copyright (C) 1999, 2000, 2007 Free Software Foundation, Inc.
4
4
 
5
5
    This program is free software; you can redistribute it and/or modify
6
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
 
7
    the Free Software Foundation; either version 3 of the License, or
8
8
    (at your option) any later version.
9
9
 
10
10
    This program is distributed in the hope that it will be useful,
13
13
    GNU General Public License for more details.
14
14
 
15
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18
 
 
19
 
    I can also be contacted at:
20
 
 
21
 
    Andrew Clausen
22
 
    18 Shaw St
23
 
    Ashwood, 3147
24
 
    Victoria, Australia
 
16
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
25
17
*/
26
18
 
27
19
#ifndef COUNT_H_INCLUDED
28
20
#define COUNT_H_INCLUDED
29
21
 
 
22
typedef enum _FatClusterFlag FatClusterFlag;
 
23
typedef struct _FatClusterInfo FatClusterInfo;
 
24
 
30
25
enum _FatClusterFlag {
31
26
        FAT_FLAG_FREE=0,
32
27
        FAT_FLAG_FILE=1,
33
28
        FAT_FLAG_DIRECTORY=2,
34
29
        FAT_FLAG_BAD=3
35
30
};
36
 
typedef enum _FatClusterFlag FatClusterFlag;
37
31
 
38
 
struct _FatClusterInfo {
 
32
struct __attribute__ ((packed)) _FatClusterInfo {
39
33
        unsigned int    units_used:6;   /* 1 unit = cluster_size / 64 */
40
34
        FatClusterFlag  flag:2;
41
 
} __attribute__ ((packed)) fat16;
42
 
typedef struct _FatClusterInfo FatClusterInfo;
 
35
} fat16;
43
36
 
44
37
extern int fat_collect_cluster_info (PedFileSystem *fs);
45
38
extern FatClusterFlag fat_get_cluster_flag (PedFileSystem* fs,