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

Re: [Nbd] NBD blksize = 1024



Hi!

> Way back in the mists of time
> (http://repo.or.cz/davej-history.git?a=blame_incremental;hb=c5a4ebcd4431e607667b63c173d5918b518fe3b2;f=drivers%2Fblock%2Fnbd.c#l39
> ) the first two NBD devices were set to have a blksize of 1024 by
> default.
...
> However, while nbd_dev's blksize is set to 1024 the bdev's own block
> size will presumably start out at something different (512?) and if the
> server doesn't choose to negotiate a different size it will remain at
> that size. Does anyone know why blksize was made to default to 1024 and
> is that just for things like size calculations or does it impact the
> minimum block size too?

I'm pretty sure 1024 just looked like nice, round value. And it worked,
so there was no reason to change it. 

Best regards,
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html



Reply to: