On Thu, Aug 23, 2012 at 12:17 PM, Jan Stary <[email protected]> wrote: > On current/amd64 I created a MSDOS filesystem on a CF card > inserted into a USB card reader > > # newfs_msdos -F 32 -L SHERLOCK sd3i
Note: msdosfs. > Somehow, the wrong error condition is reported: > E2BIG instead of a failed write(2). ... > If I am reading this right, getting the warn() message means > that either the lseek() or the write() must have failed; > but both of them set errno, and not to E2BIG. > So why does the warn() report E2BIG? grep -rwl E2BIG /usr/src/sys/msdosfs msdosfs returns E2BIG to write() for various conditions. ENOSPC might be better for some of those. Philip Guenther
