Subject: None
To: None <>
From: Jian-Fei Li <>
List: tech-kern
Date: 06/16/1994 13:23:00
Dear sir:

I am reading the kernel routine about ufs file system.
In fs.h, cbtorpos(fs,bno) computers the rotational position of 
a cyl block addr. 

#define cbtorpos(fs, bno)
    (((bno) * NSPF(fs) % (fs)->fs_spc / (fs)->fs_nsect * (fs)->fs_trackskew +
     (bno) * NSPF(fs) % (fs)->fs_spc % (fs)->fs_nsect * (fs)->fs_interleave) %
     (fs)->fs_nsect * (fs)->fs_nrpos / (fs)->fs_npsect)

I have the problem to understand the principles behind this conversion.
Can any one please give me some detail explanation.

Your help will be greatly appreciated.