On Thu, 21 Aug 2003, Thierry Vignaud wrote:
> > 2) Maybe printing the reason, why non-destrcutive partitioning
> > isn't possible could help in cases. Occasionally these are
> > happening:
>
> pixel, could you display the reason why we cannot perform a non
> destructive resizing too ?
QTParted does this. The rule is if exit code isn't 0, then either
1) potentially multiply lines error printed right before program exit,
prefixed with ERROR at column 0, for example,
ERROR(30): Failed to set $Volume dirty: Read-only file system
or
ERROR: filesystem check failed! Windows wasn't shut down properly
or inconsistent filesystem. Please run chkdsk on Windows.
or
2) message is "The volume end is fragmented, this case is not yet
supported ...".
Well, separate, unique exit codes would be a better way ... hmmm,
103 different exit points, most can have dozens of reasons, e.g.
above errno = 30 means Read-only file system. Not sure anymore ...
Szaka