Ian Dowse
6369218752
Fix a number of bugs and annoyances in fdisk, many of which were
...
pointed out by bde:
- Ask for user confirmation before adjusting to a head/cylinder
boundary (only when running interactively), and separate this
adjustment from the automatic calculation of c/h/s parameters.
- In sanitize_partition, don't change any values in the slice until
we know that the automatic adjustment will succeed.
- When auto-adjusting, ignore unused slices and give an appropriate
error for other zero-size slices depending on the cause.
- Change dos() to do all of the c/h/s calculations for a whole slice;
this fixes a bug where the ending c/h/s of an unused slice was set
incorrectly.
- When changing the active slice, detect the currently active slice
number instead of always defaulting to slice 4.
- Call fflush(stdout) before calling fgets().
- Test for fgets() returning NULL so we don't loop on EOF.
Reviewed by: bde
2001-08-05 16:24:13 +00:00
..
2001-07-15 05:41:57 +00:00
2001-07-10 11:04:34 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-26 11:02:39 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 10:30:46 +00:00
2001-07-10 11:04:34 +00:00
2001-07-15 07:53:42 +00:00
2001-04-07 11:21:35 +00:00
2001-07-15 07:53:42 +00:00
2001-07-14 21:56:04 +00:00
2001-07-15 14:00:19 +00:00
2001-07-10 11:04:34 +00:00
2001-07-15 07:53:42 +00:00
2001-08-05 16:24:13 +00:00
2001-07-15 07:53:42 +00:00
2001-08-01 12:15:21 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-19 17:06:19 +00:00
2001-07-15 07:53:42 +00:00
2001-03-26 14:33:27 +00:00
2001-08-01 12:15:21 +00:00
2001-08-05 16:24:13 +00:00
2001-07-26 16:44:19 +00:00
2001-07-26 11:02:39 +00:00
2001-07-10 11:04:34 +00:00
2001-06-18 15:55:28 +00:00
2001-06-23 09:10:48 +00:00
2001-08-01 07:05:51 +00:00
2001-05-18 13:41:42 +00:00
2001-06-18 15:55:28 +00:00
2001-07-15 07:53:42 +00:00
2001-08-01 05:53:12 +00:00
2001-07-15 10:30:46 +00:00
2001-05-18 13:41:42 +00:00
2001-07-10 11:04:34 +00:00
2001-07-10 11:04:34 +00:00
2001-07-15 07:53:42 +00:00
2001-07-18 13:32:38 +00:00
2001-07-30 09:13:21 +00:00
2001-07-15 07:53:42 +00:00
2001-07-10 11:04:34 +00:00
2001-07-10 11:04:34 +00:00
2001-07-10 11:04:34 +00:00
2001-07-10 11:04:34 +00:00
2001-06-24 23:31:07 +00:00
2001-07-28 20:50:21 +00:00
2001-07-21 15:38:37 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-05-24 15:20:11 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-10 11:04:34 +00:00
2001-07-15 07:53:42 +00:00
2001-03-26 14:33:27 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-06-07 16:59:19 +00:00
2001-07-15 07:53:42 +00:00
2001-07-23 12:05:27 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-04 14:04:16 +00:00
2001-07-15 07:53:42 +00:00
2001-06-16 07:16:14 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 07:53:42 +00:00
2001-07-10 11:04:34 +00:00
2001-06-11 12:39:29 +00:00
2001-07-10 11:04:34 +00:00
2001-07-20 06:20:32 +00:00
2001-07-15 05:46:07 +00:00
2001-07-15 07:53:42 +00:00
2001-07-15 10:30:46 +00:00
2001-07-10 11:04:34 +00:00
2001-07-15 10:30:46 +00:00
2001-08-02 12:38:23 +00:00
2001-07-24 11:40:18 +00:00
2001-07-22 12:17:51 +00:00
2001-08-04 18:25:48 +00:00
2001-07-09 11:06:47 +00:00
2001-03-26 14:33:27 +00:00