[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Kenneth R Westerback <krw_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Sun, 10 Dec 2006 12:19:33 -0700 (MST)
CVSROOT: /cvs
Module name: src
Changes by: krw_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2006/12/10 12:19:33
Modified files:
sbin/fdisk : disk.c mbr.c
Log message:
Read/write device sectors rather than assuming sector size ==
DEV_BSIZE. Simply extract/insert the desired MBR from/into the first
DEV_BSIZE bytes of the sector. Makes fdisk work with devices having a
sector size different from DEV_BSIZE (512 bytes). e.g. 2048 byte
sector MP3 devices. Original diff from weingart_(_at_)__(_dot_)_
ok pedro@ deraadt@ weingart@
Visit your host, monkey.org