Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3d35386 in mainline for uspace/drv/nic/e1k/e1k.c

Timestamp:
2014-07-28T20:10:01Z (7 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
master
Children:
c1f26834
Parents:
7eb6c96
Message:

libblock: limit the number of retries if we fail to write a block to disk.

The original behaviour is to continously retry to write a block until the
operation succeeds, this will cause the system to enter an infinite loop
if the underlying device is unable to satisfy the request.

This patch introduces an upper limit to the number of retries and discards
the block if the limit is reached.
It also fixes a bug in the block_get() function that allows the user to
try to read a block beyond the end of the device.

(No files)

Note: See TracChangeset for help on using the changeset viewer.