OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [fs/] [ntfs/] [dir.h] - Diff between revs 1275 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1275 Rev 1765
/*
/*
 * dir.h - Header file for dir.c
 * dir.h - Header file for dir.c
 *
 *
 * Copyright (C) 1997 Régis Duchesne
 * Copyright (C) 1997 Régis Duchesne
 */
 */
#define ITERATE_SPLIT_DONE      1
#define ITERATE_SPLIT_DONE      1
 
 
enum ntfs_iterate_e {
enum ntfs_iterate_e {
    BY_POSITION,
    BY_POSITION,
    BY_NAME,
    BY_NAME,
    DIR_INSERT
    DIR_INSERT
};
};
 
 
/* not all fields are used for all operations */
/* not all fields are used for all operations */
typedef struct ntfs_iterate_s {
typedef struct ntfs_iterate_s {
        enum ntfs_iterate_e type;
        enum ntfs_iterate_e type;
        ntfs_inode *dir;
        ntfs_inode *dir;
        union{
        union{
                ntfs_u64 pos;
                ntfs_u64 pos;
                int flags;
                int flags;
        }u;
        }u;
        char *result;      /* pointer to entry if found */
        char *result;      /* pointer to entry if found */
        ntfs_u16* name;
        ntfs_u16* name;
        int namelen;
        int namelen;
        int block;         /* current index record */
        int block;         /* current index record */
        int newblock;      /* index record created in a split */
        int newblock;      /* index record created in a split */
        char *new_entry;
        char *new_entry;
        int new_entry_size;
        int new_entry_size;
        /*ntfs_inode* new;*/
        /*ntfs_inode* new;*/
} ntfs_iterate_s;
} ntfs_iterate_s;
 
 
int ntfs_getdir_unsorted(ntfs_inode *ino, ntfs_u32 *p_high, ntfs_u32* p_low,
int ntfs_getdir_unsorted(ntfs_inode *ino, ntfs_u32 *p_high, ntfs_u32* p_low,
                         int (*cb)(ntfs_u8*, void*), void *param);
                         int (*cb)(ntfs_u8*, void*), void *param);
 
 
int ntfs_getdir_byname(ntfs_iterate_s *walk);
int ntfs_getdir_byname(ntfs_iterate_s *walk);
 
 
int ntfs_dir_add(ntfs_inode *dir, ntfs_inode *new, ntfs_attribute *name);
int ntfs_dir_add(ntfs_inode *dir, ntfs_inode *new, ntfs_attribute *name);
 
 
int ntfs_check_index_record(ntfs_inode *ino, char *record);
int ntfs_check_index_record(ntfs_inode *ino, char *record);
 
 
int ntfs_getdir_byposition(ntfs_iterate_s *walk);
int ntfs_getdir_byposition(ntfs_iterate_s *walk);
 
 
int ntfs_mkdir(ntfs_inode* dir,const char* name,int namelen, ntfs_inode *ino);
int ntfs_mkdir(ntfs_inode* dir,const char* name,int namelen, ntfs_inode *ino);
 
 
int ntfs_split_indexroot(ntfs_inode *ino);
int ntfs_split_indexroot(ntfs_inode *ino);
 
 
int ntfs_add_index_root(ntfs_inode *ino, int type);
int ntfs_add_index_root(ntfs_inode *ino, int type);
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.