How to get more vfat attributes of files in Linux using C?

前端 未结 1 421
野性不改
野性不改 2021-01-03 12:09

This is a follow-up to my other question here:

How to read vfat attributes of files in Linux using C

--

I saw this struct in linux/msdos_fs.h:

<
相关标签:
1条回答
  • 2021-01-03 12:48

    Actually you can get almost all of this by combining the information you can get from fstat(), the FAT_IOCTL_GET_ATTRIBUTES and VFAT_IOCTL_READDIR_BOTH ioctls. It's not going to nice to look at though, since for the fromer two you need the file fd and for the latter two you need the fd of the dir the file is located in.

    0 讨论(0)
提交回复
热议问题