Re: [PATCH] clipped disk reports clipped lba size

From: Andries.Brouwer@cwi.nl
Date: Sat Feb 02 2002 - 08:38:22 EST


    From: Paul Gortmaker <p_gortmaker@yahoo.com>

> (1) *_AEB is intended as private namespace for me, not for inclusion
> in an official kernel. So, some official name, like HDIO_DRIVE_TASK,
> must be better.

    Yes, DRIVE_TASK is of course the official name - I just knew you would
    immediately recognize *_AEB & and know context/usage :) BTW, if you
    didn't want it in an official kernel, it is a bit late for that. It has
    been in for some time in 2.4 .... <grep> 2.3.99pre9 to be exact.

Yes. But it is unnecessary and can be removed.

> to solve both problems without involving ioctl's, or boot
> parameters, or config parameters. All should just work
> in the common case.

    This is a valid point - in an ideal situation things should just work
    without user intervention or setmax util, etc. What are you currently
    recommending to 2.2.x kernel users that come across this limitation
    prior to such an ideal fix being released in a 2.2.x kernel?

Precisely what you also suggest: setmax plus the kernel patch that
makes it work. (Or: go to 2.4.)

    From Andre Hedrick <andre@linuxdiskcert.org>

    It is a valid and techincally correct operation; however, it is only one
    half of the solution. Your "SETMAX" user-space IOCTL, is great if you do
    not have partitions that bridge that boundary, other wise TOAST.

If an extended partition table sector is located past the accessible
area of the disk, then probably accessing it yields an I/O error.
Later, using partx or "blockdev --rereadpt" or so, one can add the
missing partitions again. A bit ugly and kludgy, that is why the
kernel should do this itself, and automatically.

    Now the problem I have not addressed is the reboot issue,
    and neither have you.

Only partially. Details depend on type of disk and BIOS.
But roughly speaking, if one wants a warm reboot, one can
invoke setmax again to clip the disk (or hold F4 down
during the reboot).

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:22 EST