Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2843 → Rev 2844

/trunk/uspace/lib/libfs/libfs.c
147,7 → 147,7
last += PLB_SIZE;
 
void *par = NULL;
void *cur = ops->root_get();
void *cur = ops->root_get(dev_handle);
void *tmp;
 
if (ops->plb_get_char(next) == '/')
/trunk/uspace/lib/libfs/libfs.h
52,7 → 52,7
size_t (* size_get)(void *);
unsigned (* lnkcnt_get)(void *);
bool (* has_children)(void *);
void *(* root_get)(void);
void *(* root_get)(dev_handle_t);
char (* plb_get_char)(unsigned pos);
bool (* is_directory)(void *);
bool (* is_file)(void *);
/trunk/uspace/srv/fs/tmpfs/tmpfs_ops.c
97,7 → 97,7
return ((tmpfs_dentry_t *) nodep)->child != NULL;
}
 
static void *tmpfs_root_get(void)
static void *tmpfs_root_get(dev_handle_t dev_handle)
{
return root;
}
/trunk/uspace/srv/fs/fat/fat_ops.c
237,7 → 237,7
found:
if (!(d->attr & (FAT_ATTR_SUBDIR | FAT_ATTR_VOLLABEL)))
node->type = FAT_FILE;
if ((d->attr & FAT_ATTR_SUBDIR) || !pindex)
if ((d->attr & FAT_ATTR_SUBDIR) || !index)
node->type = FAT_DIRECTORY;
assert((node->type == FAT_FILE) || (node->type == FAT_DIRECTORY));
332,6 → 332,16
return ((fat_node_t *)node)->lnkcnt;
}
 
static void *fat_root_get(dev_handle_t dev_handle)
{
return fat_node_get(dev_handle, 0, 0);
}
 
static char fat_plb_get_char(unsigned pos)
{
return fat_reg.plb_ro[pos % PLB_SIZE];
}
 
static bool fat_is_directory(void *node)
{
return ((fat_node_t *)node)->type == FAT_DIRECTORY;
354,8 → 364,8
.size_get = fat_size_get,
.lnkcnt_get = fat_lnkcnt_get,
.has_children = NULL,
.root_get = NULL,
.plb_get_char = NULL,
.root_get = fat_root_get,
.plb_get_char = fat_plb_get_char,
.is_directory = fat_is_directory,
.is_file = fat_is_file
};