Skip to content

Commit f6966ca

Browse files
committed
Add NOTES.md
1 parent 5e75468 commit f6966ca

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

NOTES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# Devices with non-standard (or rather - non-valid) size
3+
4+
Many existing devices (HDFs) have sizes not rounded to 512-byte blocks (like
5+
2000000 or 5000000). Access to such devices using ADFlib is through 512-byte
6+
blocks and, therefore, limited to:
7+
8+
floor(size / 512) * 512
9+
10+
meaning that remaining, smaller than 512-byte part after the last full block
11+
cannot be accessed.
12+
13+
Note that in such cases the size calculated from device's geometry:
14+
15+
cylinders * heads * sectors * sector_size (512)
16+
17+
is different from the size of HDF file.

0 commit comments

Comments
 (0)