EWOULDBLOCKIO problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I've an user of my virtual cd kernel module who does get an 

/* Defined for TUX async IO */
#define EWOULDBLOCKIO   530     /* Would block due to block-IO */

if he does following:

mount -t iso9660 /dev/virtualcd0 /mnt/virtualcd/

my code looks following in that part

        position = startposition + offset;
        desc.written = 0;
        desc.count = 512 * req->current_nr_sectors;
        desc.buf = req->buffer;
        desc.error = 0;
        do_generic_file_read(vc->vc_backing_file, &position,
                &desc, vc_read_actor);

        retval = desc.written;

        if (!retval){
                retval = desc.error;
                #ifdef VC_DEBUG
                printk(KERN_INFO "retval error %i\n", retval);
                #endif
                return retval;
        }

I was now told that, that may happens if the uses passes O_NDELAY or 
O_NONBLOCK in the open(2) function, but I don't see how he could do that, 
with that commandline. Any ideas at that topic?

- -- 
Regards,
Robert
- ----------------
Robert Penz
robert.penz AT outertech.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+qIjt8tTsQqJDUBMRAn6VAJ4nb2+on7agP6mkW6WorBv0xivl/wCfUG4H
xg/palIvS6nBpRQ3DUOhF7w=
=GMjC
-----END PGP SIGNATURE-----

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux