~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to include/swapheader.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-05-11 08:38:31 UTC
  • mfrom: (1.3.10 upstream)
  • mto: (1.6.3 upstream) (4.5.5 sid)
  • mto: This revision was merged to the branch mainline in revision 82.
  • Revision ID: james.westby@ubuntu.com-20110511083831-tty7wnezw55fmrn4
ImportĀ upstreamĀ versionĀ 2.19.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
        unsigned int badpages[1];
11
11
};
12
12
 
 
13
 
 
14
#define SWAP_UUID_LENGTH 16
 
15
#define SWAP_LABEL_LENGTH 16
 
16
 
13
17
struct swap_header_v1_2 {
14
18
        char          bootbits[1024];    /* Space for disklabel etc. */
15
19
        unsigned int  version;
16
20
        unsigned int  last_page;
17
21
        unsigned int  nr_badpages;
18
 
        unsigned char uuid[16];
19
 
        char          volume_name[16];
 
22
        unsigned char uuid[SWAP_UUID_LENGTH];
 
23
        char          volume_name[SWAP_LABEL_LENGTH];
20
24
        unsigned int  padding[117];
21
25
        unsigned int  badpages[1];
22
26
};