Subversion Repositories shark

Rev

Rev 3 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 *
 *
 *
 *
 */


#ifndef __MSDOS_F_H__
#define __MSDOS_F_H__

#include <fs/types.h>

struct msdos_file_info {
  /* these informations are redundant but are used to increase performance */
  __uint16_t  cluster; /* actual cluster */
  __uint32_t  lsector; /* actual logical sector */
  __uint16_t  sectnum; /* sector number (relative to start of cluster) */
  __uint16_t  bpos;    /* byte position (relative to start of sector) */
  /**/
  __uint16_t  bakcluster; /* see msdos_i.c at __advance() & __increase() */
};

#define MSDOS_F(ptr) ((ptr)->u.msdos_f)

#endif