Subversion Repositories HelenOS

Rev

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

Rev 3572 Rev 3595
Line 61... Line 61...
61
#define fat_clusters_get(bs, dh, fc) \
61
#define fat_clusters_get(bs, dh, fc) \
62
    fat_cluster_walk((bs), (dh), (fc), NULL, (uint16_t) -1)
62
    fat_cluster_walk((bs), (dh), (fc), NULL, (uint16_t) -1)
63
extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,
63
extern uint16_t fat_cluster_walk(struct fat_bs *, dev_handle_t, fat_cluster_t,
64
    fat_cluster_t *, uint16_t);
64
    fat_cluster_t *, uint16_t);
65
 
65
 
66
#define fat_block_get(bs, np, bn) \
66
#define fat_block_get(bs, np, bn, flags) \
67
    _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (bn))
67
    _fat_block_get((bs), (np)->idx->dev_handle, (np)->firstc, (bn), (flags))
68
 
68
 
69
extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t,
69
extern struct block *_fat_block_get(struct fat_bs *, dev_handle_t,
70
    fat_cluster_t, bn_t);
70
    fat_cluster_t, bn_t, int);
71
 
71
 
72
extern void fat_append_clusters(struct fat_bs *, struct fat_node *,
72
extern void fat_append_clusters(struct fat_bs *, struct fat_node *,
73
    fat_cluster_t);
73
    fat_cluster_t);
74
extern void fat_chop_clusters(struct fat_bs *, struct fat_node *,
74
extern void fat_chop_clusters(struct fat_bs *, struct fat_node *,
75
    fat_cluster_t);
75
    fat_cluster_t);