Project

General

Profile

Bug #12006

Updated by Toomas Soome almost 2 years ago

Replace build time value with one calculated based on disk sector size. 

 Testing done: 
 <pre> 
 # zpool create -f tank_4kn c0t600144F07A6B316A00005DDE63B30001d0 

 format> ver 

 Volume name = <          > 
 ascii name    = <SUN-COMSTAR-1.0-10.00GB> 
 bytes/sector      =    4096 
 sectors = 2621440 
 accessible sectors = 2619381 
 first usable sector = 6 
 last usable sector = 2621434 
 Part        Tag      Flag       First Sector         Size         Last Sector 
   0          usr      wm                2048        9.98GB          2619386     
   1 unassigned      wm                   0           0               0     
   2 unassigned      wm                   0           0               0     
   3 unassigned      wm                   0           0               0     
   4 unassigned      wm                   0           0               0     
   5 unassigned      wm                   0           0               0     
   6 unassigned      wm                   0           0               0     
   8     reserved      wm             2619387        8.00MB          2621434     

 format>  

 # zpool create -B tank_4kn c0t600144F07A6B316A00005DDE63B30001d0 

 format> ver 

 Volume name = <          > 
 ascii name    = <SUN-COMSTAR-1.0-10.00GB> 
 bytes/sector      =    4096 
 sectors = 2621440 
 accessible sectors = 2619381 
 first usable sector = 6 
 last usable sector = 2621434 
 Part        Tag      Flag       First Sector         Size         Last Sector 
   0       system      wm                2048      256.00MB          67583     
   1          usr      wm               67584        9.73GB          2619386     
   2 unassigned      wm                   0           0               0     
   3 unassigned      wm                   0           0               0     
   4 unassigned      wm                   0           0               0     
   5 unassigned      wm                   0           0               0     
   6 unassigned      wm                   0           0               0     
   8     reserved      wm             2619387        8.00MB          2621434     

 format>  

 # zpool create -B tank_512B c0t600144F07A6B316A00005DDE63C80002d0 


 Volume name = <          > 
 ascii name    = <SUN-COMSTAR-1.0-15.00GB> 
 bytes/sector      =    512 
 sectors = 31457280 
 accessible sectors = 31440829 
 first usable sector = 34 
 last usable sector = 31457246 
 Part        Tag      Flag       First Sector          Size          Last Sector 
   0       system      wm                2048       256.00MB           526335     
   1          usr      wm              526336        14.74GB           31440862     
   2 unassigned      wm                   0            0                0     
   3 unassigned      wm                   0            0                0     
   4 unassigned      wm                   0            0                0     
   5 unassigned      wm                   0            0                0     
   6 unassigned      wm                   0            0                0     
   8     reserved      wm            31440863         8.00MB           31457246     

 format> 

 # zpool create tank_512B c0t600144F07A6B316A00005DDE63C80002d0 

 Volume name = <          > 
 ascii name    = <SUN-COMSTAR-1.0-15.00GB> 
 bytes/sector      =    512 
 sectors = 31457280 
 accessible sectors = 31440829 
 first usable sector = 34 
 last usable sector = 31457246 
 Part        Tag      Flag       First Sector          Size          Last Sector 
   0          usr      wm                2048        14.99GB           31440862     
   1 unassigned      wm                   0            0                0     
   2 unassigned      wm                   0            0                0     
   3 unassigned      wm                   0            0                0     
   4 unassigned      wm                   0            0                0     
   5 unassigned      wm                   0            0                0     
   6 unassigned      wm                   0            0                0     
   8     reserved      wm            31440863         8.00MB           31457246     

 format> 
 </pre>

Back