diff options
author | google <google@daverabbitz.ath.cx> | 2012-09-09 17:22:12 +1200 |
---|---|---|
committer | google <google@daverabbitz.ath.cx> | 2012-09-09 17:22:12 +1200 |
commit | dd1b8df8808df4fe295a90ab494da90162c5654f (patch) | |
tree | eabbba5b00e6a1288001f4fb8ae5a5ee667cc234 /sys/src/9/pc/sdiahci.c | |
parent | aead11533ec4d17f4382b1e10f850042391bccb2 (diff) |
Add alignment hints for e512 ATA drives.
Diffstat (limited to 'sys/src/9/pc/sdiahci.c')
-rw-r--r-- | sys/src/9/pc/sdiahci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/sdiahci.c b/sys/src/9/pc/sdiahci.c index 6d5008286..fdb8f3eb3 100644 --- a/sys/src/9/pc/sdiahci.c +++ b/sys/src/9/pc/sdiahci.c @@ -2226,6 +2226,8 @@ iarctl(SDunit *u, char *p, int l) p = seprint(p, e, "\n"); p = seprint(p, e, "mode\t%s %s\n", modes[d->mode], modes[maxmode(c)]); p = seprint(p, e, "geometry %llud %lud\n", d->sectors, u->secsize); + p = seprint(p, e, "alignment %d %d\n", + d->secsize<<d->portm.physshift, d->portm.physalign); return p - op; } |