Date: Sun, 18 Mar 2012 14:01:39 +0100 From: rank1seeker@gmail.com To: hackers@freebsd.org Subject: BUG: REL 9.0 - MD malloc of custom sector size Message-ID: <20120318.130139.003.1@DOMY-PC>
next in thread | raw e-mail | index | archive | help
man mdconfig=0D=0A----=0D=0A-S sectorsize to use for malloc backed = device=0D=0A----=0D=0A=0D=0AI want to create MD device, with sector size = of 4 Kb.=0D=0A=0D=0AIt is CRITICAL to NOT append ANY suffixes, when = specifing size, via '-s' flag in order to use sectors, to set it's = size.=0D=0A# mdconfig -a -t malloc -S 4096 -s 32768=0D=0A=0D=0AThis = should created dev of 128 Mb in size.=0D=0A32768 sectors * 4 Kb each =3D = 131072 Kb =3D 128 Mb=0D=0ANot! It created dev of 16 Mb in size, because = sector size remained at 512 bytes.=0D=0A=0D=0AAnd look what 'diskinfo' = has to say/lie ...=0D=0A# diskinfo -v md0=0D=0Amd0=0D=0A 4096 = # sectorsize=0D=0A 16777216 # mediasize in bytes = (16M)=0D=0A 4096 # mediasize in sectors=0D=0A 0 = # stripesize=0D=0A 0 # = stripeoffset=0D=0A=0D=0AFalse lines:=0D=0A # sectorsize=0D=0A # = mediasize in sectors (doesn't match '-s 32768')=0D=0A=0D=0A=0D=0ADoes = anyone has any advice of creating image / file(vnode) of custom sector = sizes (2k, 4k, 8k)=0D=0AThanks in advance.=0D=0A=0D=0A=0D=0ADomagoj = Smol=E8i=E6
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120318.130139.003.1>