Subversion Repositories HelenOS

Rev

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

Rev 3506 Rev 3513
Line 198... Line 198...
198
         * Unfortunately, the 'size' field of the FAT dentry is not
198
         * Unfortunately, the 'size' field of the FAT dentry is not
199
         * defined for the directory entry type. We must determine the
199
         * defined for the directory entry type. We must determine the
200
         * size of the directory by walking the FAT.
200
         * size of the directory by walking the FAT.
201
         */
201
         */
202
        nodep->size = bps * _fat_blcks_get(idxp->dev_handle,
202
        nodep->size = bps * _fat_blcks_get(idxp->dev_handle,
203
            uint16_t_le2host(d->firstc));
203
            uint16_t_le2host(d->firstc), NULL);
204
    } else {
204
    } else {
205
        nodep->type = FAT_FILE;
205
        nodep->type = FAT_FILE;
206
        nodep->size = uint32_t_le2host(d->size);
206
        nodep->size = uint32_t_le2host(d->size);
207
    }
207
    }
208
    nodep->firstc = uint16_t_le2host(d->firstc);
208
    nodep->firstc = uint16_t_le2host(d->firstc);