[lkml]   [2002]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] remove 2TB block device limit
    On Friday May 10, wrote:
    > Hi,
    > At present, linux is limited to 2TB filesystems even on 64-bit
    > systems, because there are various places where the block offset on
    > disc are assigned to unsigned or int 32-bit variables.
    > There's a type, sector_t, that's meant to hold offsets in sectors and
    > blocks. It's not used consistently (yet).
    > The patch at

    > As this touches lots of places -- the generic block layer (Andrew?)
    > the IDE code (Martin?) and RAID (Neil?) and minor changes to the scsi
    > I've CCd a few people directly.

    MD part looks sane to me. However I would rather the

    +#ifdef CONFIG_LFS
    +#include <asm/div64.h>
    +#undef do_div
    +#define do_div(n, b)({ int _res; _res = (n) % (b); (n) /= (b); _res;})

    part went in linux/raid/md_k.h and defined "sector_div" (or similar)
    as either do_div or ({ int _res; _res = (n) % (b); (n) /= (b); _res;})
    as appropriate.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:26    [W:0.023 / U:12.552 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site