Re: In which case EWOULDBLOCK is set while a write operation

2007-12-19 Thread Erik Mouw
On Tue, Dec 18, 2007 at 11:27:49AM +0530, Saquib Imam wrote:
 In which case EWOULDBLOCK / EAGAIN is set while a write operation ?

From write(2):

ERRORS
   EAGAIN Non-blocking  I/O  has  been  selected  using O_NONBLOCK and the
  write would block.


Erik

-- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery


signature.asc
Description: Digital signature


Re: In which case EWOULDBLOCK is set while a write operation

2007-12-18 Thread Mulyadi Santosa
Hi..

 In which case EWOULDBLOCK / EAGAIN is set while a write operation ?

i think it will happen if you use O_NONBLOCK but writing operation
itself will clearly block (for numerous reasons e.g block needs to be
allocated first and so on).

 Can any one give detailed processing of a write operation for a file system
 with journaling , like EXT3 File System.

better grab book like Understanding the Linux kernel 3rd edition or
Linux Device Driver 3rd edition. It is explained quite extensively
there.

regards,

Mulyadi.
-
To unsubscribe from this list: send the line unsubscribe linux-scsi in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html