]>
Commit | Line | Data |
---|---|---|
24b2c7a7 TT |
1 | /* |
2 | * main.c --- ext2 resizer main program | |
3 | * | |
0cee8a5c TT |
4 | * Copyright (C) 1997, 1998 by Theodore Ts'o and |
5 | * PowerQuest, Inc. | |
6 | * | |
55f4cbd9 | 7 | * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 by Theodore Ts'o |
efc6f628 | 8 | * |
24b2c7a7 | 9 | * %Begin-Header% |
0cee8a5c TT |
10 | * This file may be redistributed under the terms of the GNU Public |
11 | * License. | |
24b2c7a7 TT |
12 | * %End-Header% |
13 | */ | |
14 | ||
fe07357f TT |
15 | #define _LARGEFILE_SOURCE |
16 | #define _LARGEFILE64_SOURCE | |
17 | ||
d1154eb4 | 18 | #include "config.h" |
c762c8e6 TT |
19 | #ifdef HAVE_GETOPT_H |
20 | #include <getopt.h> | |
373b8337 TT |
21 | #else |
22 | extern char *optarg; | |
23 | extern int optind; | |
c762c8e6 | 24 | #endif |
fe07357f | 25 | #include <unistd.h> |
f38cf3cb TT |
26 | #ifdef HAVE_STDLIB_H |
27 | #include <stdlib.h> | |
28 | #endif | |
fe07357f | 29 | #include <sys/types.h> |
116db1b5 | 30 | #include <sys/stat.h> |
fe07357f | 31 | #include <fcntl.h> |
c762c8e6 | 32 | |
55f4cbd9 TT |
33 | #include "e2p/e2p.h" |
34 | ||
24b2c7a7 TT |
35 | #include "resize2fs.h" |
36 | ||
0cee8a5c | 37 | #include "../version.h" |
2e561e02 | 38 | |
f404167d TT |
39 | char *program_name; |
40 | static char *device_name, *io_options; | |
24b2c7a7 | 41 | |
dfcdc32f | 42 | static void usage (char *prog) |
24b2c7a7 | 43 | { |
199ddaaa JB |
44 | fprintf (stderr, _("Usage: %s [-d debug_flags] [-f] [-F] [-M] [-P] " |
45 | "[-p] device [new_size]\n\n"), prog); | |
2e561e02 | 46 | |
24b2c7a7 TT |
47 | exit (1); |
48 | } | |
49 | ||
3b627e8d TT |
50 | static errcode_t resize_progress_func(ext2_resize_t rfs, int pass, |
51 | unsigned long cur, unsigned long max) | |
63b44fbe TT |
52 | { |
53 | ext2_sim_progmeter progress; | |
54 | const char *label; | |
55 | errcode_t retval; | |
56 | ||
57 | progress = (ext2_sim_progmeter) rfs->prog_data; | |
f4b2a6db | 58 | if (max == 0) |
3b627e8d | 59 | return 0; |
63b44fbe TT |
60 | if (cur == 0) { |
61 | if (progress) | |
62 | ext2fs_progress_close(progress); | |
63 | progress = 0; | |
64 | switch (pass) { | |
a8519a2d | 65 | case E2_RSZ_EXTEND_ITABLE_PASS: |
a13575f4 | 66 | label = _("Extending the inode table"); |
63b44fbe TT |
67 | break; |
68 | case E2_RSZ_BLOCK_RELOC_PASS: | |
a13575f4 | 69 | label = _("Relocating blocks"); |
63b44fbe | 70 | break; |
a8519a2d | 71 | case E2_RSZ_INODE_SCAN_PASS: |
a13575f4 | 72 | label = _("Scanning inode table"); |
63b44fbe TT |
73 | break; |
74 | case E2_RSZ_INODE_REF_UPD_PASS: | |
a13575f4 | 75 | label = _("Updating inode references"); |
63b44fbe TT |
76 | break; |
77 | case E2_RSZ_MOVE_ITABLE_PASS: | |
a13575f4 | 78 | label = _("Moving inode table"); |
63b44fbe | 79 | break; |
a8519a2d | 80 | default: |
a13575f4 | 81 | label = _("Unknown pass?!?"); |
a8519a2d | 82 | break; |
63b44fbe | 83 | } |
a13575f4 | 84 | printf(_("Begin pass %d (max = %lu)\n"), pass, max); |
63b44fbe TT |
85 | retval = ext2fs_progress_init(&progress, label, 30, |
86 | 40, max, 0); | |
87 | if (retval) | |
88 | progress = 0; | |
89 | rfs->prog_data = (void *) progress; | |
90 | } | |
91 | if (progress) | |
92 | ext2fs_progress_update(progress, cur); | |
93 | if (cur >= max) { | |
94 | if (progress) | |
95 | ext2fs_progress_close(progress); | |
96 | progress = 0; | |
97 | rfs->prog_data = 0; | |
98 | } | |
3b627e8d | 99 | return 0; |
63b44fbe TT |
100 | } |
101 | ||
46c5490d TT |
102 | static void determine_fs_stride(ext2_filsys fs) |
103 | { | |
104 | unsigned int group; | |
105 | unsigned long long sum; | |
5e27a274 | 106 | unsigned int has_sb, prev_has_sb = 0, num; |
46c5490d TT |
107 | int i_stride, b_stride; |
108 | ||
96c6a3ac TT |
109 | if (fs->stride) |
110 | return; | |
46c5490d TT |
111 | num = 0; sum = 0; |
112 | for (group = 0; group < fs->group_desc_count; group++) { | |
113 | has_sb = ext2fs_bg_has_super(fs, group); | |
114 | if (group == 0 || has_sb != prev_has_sb) | |
115 | goto next; | |
d7cca6b0 VAH |
116 | b_stride = ext2fs_block_bitmap_loc(fs, group) - |
117 | ext2fs_block_bitmap_loc(fs, group - 1) - | |
46c5490d | 118 | fs->super->s_blocks_per_group; |
d7cca6b0 VAH |
119 | i_stride = ext2fs_inode_bitmap_loc(fs, group) - |
120 | ext2fs_inode_bitmap_loc(fs, group - 1) - | |
46c5490d TT |
121 | fs->super->s_blocks_per_group; |
122 | if (b_stride != i_stride || | |
123 | b_stride < 0) | |
124 | goto next; | |
125 | ||
126 | /* printf("group %d has stride %d\n", group, b_stride); */ | |
127 | sum += b_stride; | |
128 | num++; | |
efc6f628 | 129 | |
46c5490d TT |
130 | next: |
131 | prev_has_sb = has_sb; | |
132 | } | |
133 | ||
134 | if (fs->group_desc_count > 12 && num < 3) | |
135 | sum = 0; | |
136 | ||
137 | if (num) | |
138 | fs->stride = sum / num; | |
139 | else | |
140 | fs->stride = 0; | |
141 | ||
96c6a3ac TT |
142 | fs->super->s_raid_stride = fs->stride; |
143 | ext2fs_mark_super_dirty(fs); | |
144 | ||
46c5490d TT |
145 | #if 0 |
146 | if (fs->stride) | |
147 | printf("Using RAID stride of %d\n", fs->stride); | |
148 | #endif | |
149 | } | |
150 | ||
0d89e5ac | 151 | static void bigalloc_check(ext2_filsys fs, int force) |
a713a7fe TT |
152 | { |
153 | if (!force && EXT2_HAS_RO_COMPAT_FEATURE(fs->super, | |
154 | EXT4_FEATURE_RO_COMPAT_BIGALLOC)) { | |
45ff69ff AD |
155 | fprintf(stderr, "%s", _("\nResizing bigalloc file systems has " |
156 | "not been fully tested. Proceed at\n" | |
157 | "your own risk! Use the force option " | |
158 | "if you want to go ahead anyway.\n\n")); | |
a713a7fe TT |
159 | exit(1); |
160 | } | |
161 | } | |
162 | ||
0a617317 | 163 | int main (int argc, char ** argv) |
24b2c7a7 TT |
164 | { |
165 | errcode_t retval; | |
166 | ext2_filsys fs; | |
167 | int c; | |
05e112a1 | 168 | int flags = 0; |
c762c8e6 | 169 | int flush = 0; |
f4b2a6db | 170 | int force = 0; |
5d2ef12f | 171 | int io_flags = 0; |
199ddaaa JB |
172 | int force_min_size = 0; |
173 | int print_min_size = 0; | |
fe07357f | 174 | int fd, ret; |
8728d506 VAH |
175 | blk64_t new_size = 0; |
176 | blk64_t max_size = 0; | |
177 | blk64_t min_size = 0; | |
24b2c7a7 | 178 | io_manager io_ptr; |
55f4cbd9 | 179 | char *new_size_str = 0; |
46c5490d | 180 | int use_stride = -1; |
7270fbe7 | 181 | ext2fs_struct_stat st_buf; |
fe07357f | 182 | __s64 new_file_size; |
54434927 | 183 | unsigned int sys_page_size = 4096; |
deae5e80 | 184 | unsigned int blocksize; |
a7ccdff8 | 185 | long sysval; |
bf69235a TT |
186 | int len, mount_flags; |
187 | char *mtpt; | |
ddc32a04 TT |
188 | |
189 | #ifdef ENABLE_NLS | |
190 | setlocale(LC_MESSAGES, ""); | |
191 | setlocale(LC_CTYPE, ""); | |
192 | bindtextdomain(NLS_CAT_NAME, LOCALEDIR); | |
193 | textdomain(NLS_CAT_NAME); | |
9d4507c5 | 194 | set_com_err_gettext(gettext); |
ddc32a04 TT |
195 | #endif |
196 | ||
a6d8302b | 197 | add_error_table(&et_ext2_error_table); |
24b2c7a7 | 198 | |
f35fd3d5 | 199 | fprintf (stderr, "resize2fs %s (%s)\n", |
ba0af756 | 200 | E2FSPROGS_VERSION, E2FSPROGS_DATE); |
24b2c7a7 TT |
201 | if (argc && *argv) |
202 | program_name = *argv; | |
2e561e02 | 203 | |
199ddaaa | 204 | while ((c = getopt (argc, argv, "d:fFhMPpS:")) != EOF) { |
24b2c7a7 TT |
205 | switch (c) { |
206 | case 'h': | |
207 | usage(program_name); | |
208 | break; | |
f4b2a6db TT |
209 | case 'f': |
210 | force = 1; | |
211 | break; | |
c762c8e6 TT |
212 | case 'F': |
213 | flush = 1; | |
214 | break; | |
199ddaaa JB |
215 | case 'M': |
216 | force_min_size = 1; | |
217 | break; | |
218 | case 'P': | |
219 | print_min_size = 1; | |
220 | break; | |
05e112a1 TT |
221 | case 'd': |
222 | flags |= atoi(optarg); | |
223 | break; | |
224 | case 'p': | |
225 | flags |= RESIZE_PERCENT_COMPLETE; | |
226 | break; | |
46c5490d TT |
227 | case 'S': |
228 | use_stride = atoi(optarg); | |
229 | break; | |
24b2c7a7 | 230 | default: |
f4b2a6db | 231 | usage(program_name); |
24b2c7a7 TT |
232 | } |
233 | } | |
f4b2a6db TT |
234 | if (optind == argc) |
235 | usage(program_name); | |
2e561e02 | 236 | |
24b2c7a7 | 237 | device_name = argv[optind++]; |
55f4cbd9 TT |
238 | if (optind < argc) |
239 | new_size_str = argv[optind++]; | |
f4b2a6db TT |
240 | if (optind < argc) |
241 | usage(program_name); | |
efc6f628 | 242 | |
2e8ca9a2 TT |
243 | io_options = strchr(device_name, '?'); |
244 | if (io_options) | |
245 | *io_options++ = 0; | |
246 | ||
bf69235a TT |
247 | /* |
248 | * Figure out whether or not the device is mounted, and if it is | |
249 | * where it is mounted. | |
250 | */ | |
251 | len=80; | |
252 | while (1) { | |
253 | mtpt = malloc(len); | |
254 | if (!mtpt) | |
255 | return ENOMEM; | |
256 | mtpt[len-1] = 0; | |
efc6f628 | 257 | retval = ext2fs_check_mount_point(device_name, &mount_flags, |
bf69235a TT |
258 | mtpt, len); |
259 | if (retval) { | |
260 | com_err("ext2fs_check_mount_point", retval, | |
261 | _("while determining whether %s is mounted."), | |
262 | device_name); | |
263 | exit(1); | |
264 | } | |
3a4d9869 | 265 | if (!(mount_flags & EXT2_MF_MOUNTED) || (mtpt[len-1] == 0)) |
bf69235a TT |
266 | break; |
267 | free(mtpt); | |
268 | len = 2 * len; | |
269 | } | |
fe07357f | 270 | |
c4012e5a | 271 | fd = ext2fs_open_file(device_name, O_RDWR, 0); |
fe07357f TT |
272 | if (fd < 0) { |
273 | com_err("open", errno, _("while opening %s"), | |
274 | device_name); | |
275 | exit(1); | |
276 | } | |
277 | ||
7270fbe7 | 278 | ret = ext2fs_fstat(fd, &st_buf); |
fe07357f | 279 | if (ret < 0) { |
efc6f628 | 280 | com_err("open", errno, |
fe07357f TT |
281 | _("while getting stat information for %s"), |
282 | device_name); | |
283 | exit(1); | |
284 | } | |
efc6f628 | 285 | |
c762c8e6 | 286 | if (flush) { |
48e08e03 TT |
287 | retval = ext2fs_sync_device(fd, 1); |
288 | if (retval) { | |
efc6f628 | 289 | com_err(argv[0], retval, |
a13575f4 | 290 | _("while trying to flush %s"), |
c762c8e6 TT |
291 | device_name); |
292 | exit(1); | |
293 | } | |
fe07357f TT |
294 | } |
295 | ||
296 | if (!S_ISREG(st_buf.st_mode )) { | |
c762c8e6 | 297 | close(fd); |
fe07357f | 298 | fd = -1; |
c762c8e6 TT |
299 | } |
300 | ||
f38cf3cb TT |
301 | #ifdef CONFIG_TESTIO_DEBUG |
302 | if (getenv("TEST_IO_FLAGS") || getenv("TEST_IO_BLOCK")) { | |
05e112a1 TT |
303 | io_ptr = test_io_manager; |
304 | test_io_backing_manager = unix_io_manager; | |
efc6f628 | 305 | } else |
f38cf3cb | 306 | #endif |
05e112a1 TT |
307 | io_ptr = unix_io_manager; |
308 | ||
5d2ef12f TT |
309 | if (!(mount_flags & EXT2_MF_MOUNTED)) |
310 | io_flags = EXT2_FLAG_RW | EXT2_FLAG_EXCLUSIVE; | |
04cb6f58 SL |
311 | |
312 | io_flags |= EXT2_FLAG_64BITS; | |
313 | ||
efc6f628 | 314 | retval = ext2fs_open2(device_name, io_options, io_flags, |
2e8ca9a2 | 315 | 0, 0, io_ptr, &fs); |
24b2c7a7 | 316 | if (retval) { |
45ff69ff AD |
317 | com_err(program_name, retval, _("while trying to open %s"), |
318 | device_name); | |
319 | printf("%s", _("Couldn't find valid filesystem superblock.\n")); | |
24b2c7a7 TT |
320 | exit (1); |
321 | } | |
baab9f43 | 322 | fs->default_bitmap_type = EXT2FS_BMAP64_RBTREE; |
236efede | 323 | |
7d7a8fe4 ES |
324 | if (!(mount_flags & EXT2_MF_MOUNTED)) { |
325 | if (!force && ((fs->super->s_lastcheck < fs->super->s_mtime) || | |
326 | (fs->super->s_state & EXT2_ERROR_FS) || | |
327 | ((fs->super->s_state & EXT2_VALID_FS) == 0))) { | |
328 | fprintf(stderr, | |
329 | _("Please run 'e2fsck -f %s' first.\n\n"), | |
330 | device_name); | |
331 | exit(1); | |
332 | } | |
333 | } | |
334 | ||
101c84f2 TT |
335 | /* |
336 | * Check for compatibility with the feature sets. We need to | |
337 | * be more stringent than ext2fs_open(). | |
338 | */ | |
76dd5e5c | 339 | if (fs->super->s_feature_compat & ~EXT2_LIB_FEATURE_COMPAT_SUPP) { |
101c84f2 TT |
340 | com_err(program_name, EXT2_ET_UNSUPP_FEATURE, |
341 | "(%s)", device_name); | |
342 | exit(1); | |
343 | } | |
a8d632a4 | 344 | |
e231f175 | 345 | min_size = calculate_minimum_resize_size(fs, flags); |
0d04d88a | 346 | |
199ddaaa | 347 | if (print_min_size) { |
8728d506 | 348 | printf(_("Estimated minimum size of the filesystem: %llu\n"), |
0d04d88a | 349 | min_size); |
199ddaaa JB |
350 | exit(0); |
351 | } | |
352 | ||
a7ccdff8 TT |
353 | /* Determine the system page size if possible */ |
354 | #ifdef HAVE_SYSCONF | |
355 | #if (!defined(_SC_PAGESIZE) && defined(_SC_PAGE_SIZE)) | |
356 | #define _SC_PAGESIZE _SC_PAGE_SIZE | |
357 | #endif | |
358 | #ifdef _SC_PAGESIZE | |
359 | sysval = sysconf(_SC_PAGESIZE); | |
360 | if (sysval > 0) | |
361 | sys_page_size = sysval; | |
362 | #endif /* _SC_PAGESIZE */ | |
363 | #endif /* HAVE_SYSCONF */ | |
364 | ||
f4b2a6db TT |
365 | /* |
366 | * Get the size of the containing partition, and use this for | |
fe07357f | 367 | * defaults and for making sure the new filesystem doesn't |
f4b2a6db TT |
368 | * exceed the partition size. |
369 | */ | |
deae5e80 TT |
370 | blocksize = fs->blocksize; |
371 | retval = ext2fs_get_device_size2(device_name, blocksize, | |
8728d506 | 372 | &max_size); |
f4b2a6db | 373 | if (retval) { |
45ff69ff | 374 | com_err(program_name, retval, "%s", |
a13575f4 | 375 | _("while trying to determine filesystem size")); |
f4b2a6db TT |
376 | exit(1); |
377 | } | |
199ddaaa | 378 | if (force_min_size) |
1d8af189 | 379 | new_size = min_size; |
199ddaaa | 380 | else if (new_size_str) { |
8728d506 VAH |
381 | new_size = parse_num_blocks2(new_size_str, |
382 | fs->super->s_log_block_size); | |
279a000f ES |
383 | if (new_size == 0) { |
384 | com_err(program_name, 0, | |
385 | _("Invalid new size: %s\n"), new_size_str); | |
386 | exit(1); | |
387 | } | |
55f4cbd9 | 388 | } else { |
f4b2a6db | 389 | new_size = max_size; |
a7ccdff8 | 390 | /* Round down to an even multiple of a pagesize */ |
deae5e80 TT |
391 | if (sys_page_size > blocksize) |
392 | new_size &= ~((sys_page_size / blocksize)-1); | |
a7ccdff8 | 393 | } |
ea38e503 TT |
394 | if (!EXT2_HAS_INCOMPAT_FEATURE(fs->super, |
395 | EXT4_FEATURE_INCOMPAT_64BIT)) { | |
396 | /* Take 16T down to 2^32-1 blocks */ | |
397 | if (new_size == (1ULL << 32)) | |
398 | new_size--; | |
399 | else if (new_size > (1ULL << 32)) { | |
45ff69ff | 400 | com_err(program_name, 0, "%s", |
ea38e503 TT |
401 | _("New size too large to be " |
402 | "expressed in 32 bits\n")); | |
403 | exit(1); | |
404 | } | |
405 | } | |
46c5490d | 406 | |
0d04d88a ES |
407 | if (!force && new_size < min_size) { |
408 | com_err(program_name, 0, | |
8728d506 | 409 | _("New size smaller than minimum (%llu)\n"), min_size); |
0d04d88a ES |
410 | exit(1); |
411 | } | |
46c5490d | 412 | if (use_stride >= 0) { |
de8f3a76 | 413 | if (use_stride >= (int) fs->super->s_blocks_per_group) { |
45ff69ff | 414 | com_err(program_name, 0, "%s", |
46c5490d TT |
415 | _("Invalid stride length")); |
416 | exit(1); | |
417 | } | |
96c6a3ac TT |
418 | fs->stride = fs->super->s_raid_stride = use_stride; |
419 | ext2fs_mark_super_dirty(fs); | |
46c5490d TT |
420 | } else |
421 | determine_fs_stride(fs); | |
efc6f628 | 422 | |
116db1b5 TT |
423 | /* |
424 | * If we are resizing a plain file, and it's not big enough, | |
425 | * automatically extend it in a sparse fashion by writing the | |
426 | * last requested block. | |
427 | */ | |
deae5e80 | 428 | new_file_size = ((__u64) new_size) * blocksize; |
efc6f628 | 429 | if ((__u64) new_file_size > |
fe07357f TT |
430 | (((__u64) 1) << (sizeof(st_buf.st_size)*8 - 1)) - 1) |
431 | fd = -1; | |
432 | if ((new_file_size > st_buf.st_size) && | |
433 | (fd > 0)) { | |
434 | if ((ext2fs_llseek(fd, new_file_size-1, SEEK_SET) >= 0) && | |
435 | (write(fd, "0", 1) == 1)) | |
116db1b5 | 436 | max_size = new_size; |
116db1b5 | 437 | } |
f4b2a6db | 438 | if (!force && (new_size > max_size)) { |
a13575f4 | 439 | fprintf(stderr, _("The containing partition (or device)" |
8728d506 VAH |
440 | " is only %llu (%dk) blocks.\nYou requested a new size" |
441 | " of %llu blocks.\n\n"), max_size, | |
deae5e80 | 442 | blocksize / 1024, new_size); |
f4b2a6db TT |
443 | exit(1); |
444 | } | |
4efbac6f | 445 | if (new_size == ext2fs_blocks_count(fs->super)) { |
77255cf3 TT |
446 | fprintf(stderr, _("The filesystem is already %llu (%dk) " |
447 | "blocks long. Nothing to do!\n\n"), new_size, | |
deae5e80 | 448 | blocksize / 1024); |
f4b2a6db TT |
449 | exit(0); |
450 | } | |
bf69235a | 451 | if (mount_flags & EXT2_MF_MOUNTED) { |
a713a7fe | 452 | bigalloc_check(fs, force); |
bf69235a TT |
453 | retval = online_resize_fs(fs, mtpt, &new_size, flags); |
454 | } else { | |
a713a7fe | 455 | bigalloc_check(fs, force); |
96cdb37e | 456 | printf(_("Resizing the filesystem on " |
8728d506 | 457 | "%s to %llu (%dk) blocks.\n"), |
deae5e80 | 458 | device_name, new_size, blocksize / 1024); |
bf69235a TT |
459 | retval = resize_fs(fs, &new_size, flags, |
460 | ((flags & RESIZE_PERCENT_COMPLETE) ? | |
461 | resize_progress_func : 0)); | |
f4b2a6db | 462 | } |
3a4d9869 | 463 | free(mtpt); |
1e1da29f | 464 | if (retval) { |
a13575f4 | 465 | com_err(program_name, retval, _("while trying to resize %s"), |
1e1da29f | 466 | device_name); |
96cdb37e TT |
467 | fprintf(stderr, |
468 | _("Please run 'e2fsck -fy %s' to fix the filesystem\n" | |
469 | "after the aborted resize operation.\n"), | |
470 | device_name); | |
47fee2ef | 471 | ext2fs_close_free(&fs); |
16082112 | 472 | exit(1); |
1e1da29f | 473 | } |
77255cf3 | 474 | printf(_("The filesystem on %s is now %llu (%dk) blocks long.\n\n"), |
deae5e80 | 475 | device_name, new_size, blocksize / 1024); |
fe07357f TT |
476 | |
477 | if ((st_buf.st_size > new_file_size) && | |
478 | (fd > 0)) { | |
261cd396 | 479 | #ifdef HAVE_FTRUNCATE64 |
fb72556a | 480 | retval = ftruncate64(fd, new_file_size); |
fe07357f | 481 | #else |
fb72556a | 482 | retval = 0; |
98dca6c5 TT |
483 | /* Only truncate if new_file_size doesn't overflow off_t */ |
484 | if (((off_t) new_file_size) == new_file_size) | |
fb72556a | 485 | retval = ftruncate(fd, (off_t) new_file_size); |
fe07357f | 486 | #endif |
fb72556a TT |
487 | if (retval) |
488 | com_err(program_name, retval, | |
489 | _("while trying to truncate %s"), | |
490 | device_name); | |
fe07357f TT |
491 | } |
492 | if (fd > 0) | |
493 | close(fd); | |
a6d8302b | 494 | remove_error_table(&et_ext2_error_table); |
0a617317 | 495 | return (0); |
24b2c7a7 | 496 | } |