login
Header Space

 
 

find out

September 9, 2008 - 5:33pm

to be able to really understand the code and to find the solution next time, you have to find out yourself; i can only give you hints. here i assume everyone on this forum wants to be able to solve a simple programming task and to read and/or debug some code. you can for example print the partial results of line 48/49, what are the values of $dev_size / $extent_size, int($dev_size / $extent_size), $dev_size % $extent_size, ($dev_size % $extent_size) ? 1 : 0 for varying values of the variables?

if you assume for a moment that the numeric value of the extent size matches the comment, what unit is extent size in? what is the factor? what does the manual page for 'blockdev' say about the option --getsize ?

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <quote> <pre> <hr> <br> <p> <img> <blockquote> <font> <tt> <table> <tr> <i>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

speck-geostationary