tech-kern archive

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

Re: dumping on RAIDframe



ef%math.uni-bonn.de@localhost (Edgar =?iso-8859-1?B?RnXf?=) writes:

>> you dump a memory block that isn't a multiple of a disk sector 
>> (according to disklabel)
>You mean this one (from disklabel raid0):
>	bytes/sector: 512
>?

Yes. Which makes it unlikely.

amd64/machdep.c:

this dumps at least DEV_BSIZE:

        to_write = roundup(dump_headerbuf_ptr - dump_headerbuf, dbtob(1));
        error = bdev->d_dump(dumpdev, dump_header_blkno,
            dump_headerbuf, to_write);

and this is called with bytes being a multiple of the page size:

        for (i = 0; i < bytes; i += n, dump_totalbytesleft -= n) {
                n = bytes - i; 
                if (n > BYTES_PER_DUMP)
                        n = BYTES_PER_DUMP;
		...
                error = (*dump)(dumpdev, blkno, (void *)dumpspace, n);
		...
	}




Home | Main Index | Thread Index | Old Index