Date: Sat, 10 Jul 2010 11:01:29 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Patrick Donnelly <batrick@batbytes.com> Cc: questions@freebsd.org Subject: Re: Writes to Hard Disk Going Beyond Capacity Message-ID: <87iq4nsr3a.fsf@kobe.laptop> In-Reply-To: <AANLkTin9-MymICgQoSjFlKbLXN2Efm5_3r6X1lufqiCo@mail.gmail.com> (Patrick Donnelly's message of "Sat, 10 Jul 2010 03:10:31 -0400") References: <AANLkTin9-MymICgQoSjFlKbLXN2Efm5_3r6X1lufqiCo@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 10 Jul 2010 03:10:31 -0400, Patrick Donnelly <batrick@batbytes.com> wrote: > Hi List, > > I have a strange problem in a C program I wrote. I open a hard > disk character file (/dev/ad1) and attempt to write over the > entire disk. I expect the last write that would go beyond the > hard disk length (capacity) to return with an error but instead > the write succeeds. This happens for hundreds of gigabytes > beyond the file (hard drive) length. What could be wrong? (This > program works fine on Linux. The last write that would go > beyond the end of the hard drive returns with -1.) > > Thanks for any help, Can we see the exact source code of the program? What you describe might work if the file has holes inside it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87iq4nsr3a.fsf>