Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news-transit.tcx.org.uk!newsfeed.datemas.de!news.datemas.de!news.ecomstation.dk!obelix.warpspeed.dk From: "Allan" Newsgroups: comp.os.os2.beta,comp.os.os2.utilities,comp.os.os2.programmer.misc,comp.os.os2.misc Subject: Re: formatting to FAT32 Date: 2 Apr 2011 10:21:10 +0200 Organization: Datemas.de http://www.news.datemas.de Lines: 26 Message-ID: References: <4d87a1f9$0$7652$9b4e6d93@newsspool1.arcor-online.net> <4D95CB7D.2060206@chollian.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.datemas.de K5atMTZ0Y4Sc23swrCRQrxK/JlTrhjwzZto69sOSmfrTs5yo9XsR4k9aRaNe84ndC4BSp0qtnY0aq8OP5RW+ayS0kMP5VWfPmDGt4BWLshkktxa9U+//RySkBqOCwlWJ17F2n6XZeE5fhCYHi3wzM3sWZDrgqRcxeQaYYddRyfQ= X-Complaints-To: abuse@datemas.de NNTP-Posting-Date: Sat, 2 Apr 2011 08:21:12 +0000 (UTC) X-Original-Trace: 2 Apr 2011 10:21:10 +0200, obelix.warpspeed.dk User-Agent: ProNews/2 V1.60.cp125d X-Authenticated-User: allan X-Original-NNTP-Posting-Host: obelix.warpspeed.dk Xref: x330-a1.tempe.blueboxinc.net comp.os.os2.beta:80 comp.os.os2.utilities:42 comp.os.os2.programmer.misc:135 comp.os.os2.misc:206 On Fri, 1 Apr 2011 18:37:04 UTC, Jonathan de Boyne Pollard wrote: > > Especially for the code snippets > > > > http://tech.groups.yahoo.com/group/fat32dev/message/680 > > > They're not really any use at all. The code to read and write a volume > has to be independent of filesystem format. How close are you to making > ordinary sector-level access with DosSetFilePtr/DosRead/DosWrite just > work as it ought? Did anyone try the DosSetFilePtrL() route that we're > trying now? These bugs have been known for years, as you can see on the data of the msgs. Doesn't look like anyone has been working on it. I hit the same issues - both DosSetFilePtr and DosWrite just returns errors - when writing the installer for osFree. Had to use the IOCtrl interface that Ko showed you for FAT32 insted. Although this interface should work on HPFS too, it is unfortunately not implemented in JFS, so this isn't usefull for all IFS's either :-/ -- Allan. It is better to close your mouth, and look like a fool, than to open it, and remove all doubt.