tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: add disk size to "struct disk"?



On Sat, 28 Apr 2012 15:55:35 +0200
Jean-Yves Migeon <jeanyves.migeon%free.fr@localhost> wrote:
> do you expect the checks to be performed in
> userland, so anyone can be free to have overlaps/overflows, or let
> the kernel do the checks and return errors using the size obtained
> through disk(9)?

The kernel does already do check, see dev/dkwedge/dk.c:dkwedge_add().
There is clearly the intent to catch overlaps, so some design
decision (not necessary final of course) has been done before.
It did just not have the full effect due to implementation bugs.

Is there something like a design document, to see the big plan?

best regards
Matthias


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Kennen Sie schon unsere app? http://www.fz-juelich.de/app


Home | Main Index | Thread Index | Old Index