C'est un suivi de mon autre question ici:Comment obtenir plus d'attributs vfat de fichiers sous Linux en utilisant C?
How to read vfat attributes of files in Linux using C
-
j'ai vu ce struct dans linux/msdos_fs.h:
struct msdos_dir_entry {
__u8 name[8],ext[3]; /* name and extension */
__u8 attr; /* attribute bits */
__u8 lcase; /* Case for base and extension */
__u8 ctime_cs; /* Creation time, centiseconds (0-199) */
__le16 ctime; /* Creation time */
__le16 cdate; /* Creation date */
__le16 adate; /* Last access date */
__le16 starthi; /* High 16 bits of cluster in FAT32 */
__le16 time,date,start;/* time, date and first cluster */
__le32 size; /* file size (in bytes) */
};
Ma question est , serait-il possible de peupler une telle structure dans mon application utilisateur? Mon application nécessite qu'elle puisse traverser un système de fichiers vfat et obtenir les attributs vfat (msdos_dir_entry
) pour chaque répertoire/fichier trouvé.
Merci.
http://www.mjmwired.net /kernel/Documentation/filesystems/vfat.txt – gcb