Subversion Repositories HelenOS

Rev

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

Rev 3272 Rev 3282
Line 354... Line 354...
354
         * The only directory which does not have this bit set is the
354
         * The only directory which does not have this bit set is the
355
         * root directory itself. The root directory node is handled
355
         * root directory itself. The root directory node is handled
356
         * and initialized elsewhere.
356
         * and initialized elsewhere.
357
         */
357
         */
358
        nodep->type = FAT_DIRECTORY;
358
        nodep->type = FAT_DIRECTORY;
-
 
359
        /*
-
 
360
         * TODO: determine the size by walking FAT. Surprisingly, the
-
 
361
         * 'size' filed of the FAT dentry is not defined for the
-
 
362
         * directory entry type.
-
 
363
         */
-
 
364
        nodep->size = 64 * sizeof(fat_dentry_t);
359
    } else {
365
    } else {
360
        nodep->type = FAT_FILE;
366
        nodep->type = FAT_FILE;
-
 
367
        nodep->size = uint32_t_le2host(d->size);
361
    }
368
    }
362
    nodep->firstc = uint16_t_le2host(d->firstc);
369
    nodep->firstc = uint16_t_le2host(d->firstc);
363
    nodep->size = uint32_t_le2host(d->size);
-
 
364
    nodep->lnkcnt = 1;
370
    nodep->lnkcnt = 1;
365
    nodep->refcnt = 1;
371
    nodep->refcnt = 1;
366
 
372
 
367
    block_put(b);
373
    block_put(b);
368
 
374