Messages in this thread | | | Date | Fri, 19 May 2006 14:15:22 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] sector_t overflow in block layer |
| |
Andreas Dilger <adilger@clusterfs.com> wrote: > > One extra suggestion that might be safe and acceptible all around is if > a device is larger than 2TB w/o a 64-bit sector_t that the block device > size itself be truncated in the kernel to 2TB-512. This at least prevents > userspace tools from trying to e.g. format a 3TB filesystem on a device > that will just corrupt the filesystem.
'twould be good if we could do something like that - doing it on every single IO submission in submit_bh() Just Feels Wrong.
Also, there's always the option (or enhancement) of emitting lots of scary warnings and then just proceeding. - 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/
| |