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

Changeset 18eb736 in mainline


Ignore:
Timestamp:
2011-07-26T18:59:37Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
88be951e
Parents:
936ece7
Message:

Rename the read_directory_entry() function with the name read_dentry().

Location:
uspace/srv/fs/minixfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs.h

    r936ece7 r18eb736  
    213213/*mfs_dentry.c*/
    214214extern int
    215 read_directory_entry(struct mfs_node *mnode,
     215read_dentry(struct mfs_node *mnode,
    216216                     struct mfs_dentry_info *d_info, unsigned index);
    217217
  • uspace/srv/fs/minixfs/mfs_dentry.c

    r936ece7 r18eb736  
    3535
    3636int
    37 read_directory_entry(struct mfs_node *mnode,
     37read_dentry(struct mfs_node *mnode,
    3838                     struct mfs_dentry_info *d_info, unsigned index)
    3939{
     
    144144        unsigned i;
    145145        for (i = 0; i < mnode->ino_i->i_size / sbi->dirsize ; ++i) {
    146                 r = read_directory_entry(mnode, &d_info, i);
     146                r = read_dentry(mnode, &d_info, i);
    147147                on_error(r, return r);
    148148
     
    173173        unsigned i;
    174174        for (i = 0; i < mnode->ino_i->i_size / sbi->dirsize; ++i) {
    175                 r = read_directory_entry(mnode, &d_info, i);
     175                r = read_dentry(mnode, &d_info, i);
    176176                on_error(r, return r);
    177177
     
    187187                on_error(r, goto out);
    188188
    189                 r = read_directory_entry(mnode, &d_info, i);
     189                r = read_dentry(mnode, &d_info, i);
    190190                on_error(r, goto out);
    191191        }
  • uspace/srv/fs/minixfs/mfs_ops.c

    r936ece7 r18eb736  
    376376        unsigned i;
    377377        for (i = 0; i < mnode->ino_i->i_size / sbi->dirsize; ++i) {
    378                 r = read_directory_entry(mnode, &d_info, i);
     378                r = read_dentry(mnode, &d_info, i);
    379379                on_error(r, return r);
    380380
     
    605605        unsigned i;
    606606        for (i = 2; i < mnode->ino_i->i_size / sbi->dirsize; ++i) {
    607                 r = read_directory_entry(mnode, &d_info, i);
     607                r = read_dentry(mnode, &d_info, i);
    608608                on_error(r, return r);
    609609
     
    658658
    659659                for (; pos < mnode->ino_i->i_size / sbi->dirsize; ++pos) {
    660                         rc = read_directory_entry(mnode, &d_info, pos);
     660                        rc = read_dentry(mnode, &d_info, pos);
    661661                        on_error(rc, goto out_error);
    662662
Note: See TracChangeset for help on using the changeset viewer.