1 /* 2 * This testing program makes sure superblock size is 1024 bytes long 3 * 4 * Copyright (C) 2007 by Theodore Ts'o. 5 * 6 * %Begin-Header% 7 * This file may be redistributed under the terms of the GNU Public 8 * License. 9 * %End-Header% 10 */ 11 12 #include <stdio.h> 13 #include <unistd.h> 14 #include <stdlib.h> 15 16 #include "ext2_fs.h" 17 18 int main(int argc, char **argv) 19 { 20 int s = sizeof(struct ext2_super_block); 21 22 printf("Size of struct ext2_super_block is %d\n", s); 23 if (s != 1024) { 24 exit(1); 25 } 26 exit(0); 27 } 28 29