這是一個後續我的其他問題在這裏:如何在Linux中使用C獲得更多文件的vfat屬性?
How to read vfat attributes of files in Linux using C
-
我看到這個結構在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) */
};
我的問題是,是否有可能在我的用戶應用程序中填充這樣一個結構體?我的應用程序要求是它應該能夠遍歷vfat文件系統,並獲取它找到的每個目錄/文件的vfat屬性(msdos_dir_entry
)。
謝謝。
http://www.mjmwired.net /kernel/Documentation/filesystems/vfat.txt – gcb 2011-09-06 06:32:54