Subversion Repositories HelenOS

Rev

Rev 3252 | Rev 3521 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3252 Rev 3254
Line 34... Line 34...
34
 * Glue code which is commonod to all FS implementations.
34
 * Glue code which is commonod to all FS implementations.
35
 */
35
 */
36
 
36
 
37
#include "libfs.h" 
37
#include "libfs.h" 
38
#include "../../srv/vfs/vfs.h"
38
#include "../../srv/vfs/vfs.h"
-
 
39
#include "../../srv/rd/rd.h"
39
#include <errno.h>
40
#include <errno.h>
40
#include <async.h>
41
#include <async.h>
41
#include <ipc/ipc.h>
42
#include <ipc/ipc.h>
42
#include <as.h>
43
#include <as.h>
43
#include <assert.h>
44
#include <assert.h>
Line 328... Line 329...
328
        ops->node_put(cur);
329
        ops->node_put(cur);
329
    if (tmp)
330
    if (tmp)
330
        ops->node_put(tmp);
331
        ops->node_put(tmp);
331
}
332
}
332
 
333
 
333
#define RD_BASE     1024    // FIXME
-
 
334
#define RD_READ_BLOCK   (RD_BASE + 1)
-
 
335
 
-
 
336
/** Read data from a block device.
334
/** Read data from a block device.
337
 *
335
 *
338
 * @param phone     Phone to be used to communicate with the device.
336
 * @param phone     Phone to be used to communicate with the device.
339
 * @param buffer    Communication buffer shared with the device.
337
 * @param buffer    Communication buffer shared with the device.
340
 * @param bufpos    Pointer to the first unread valid offset within the
338
 * @param bufpos    Pointer to the first unread valid offset within the