forked from siderolabs/go-blockdevice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support reading VFAT volume labels
See siderolabs/talos#9936 Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information
Showing
6 changed files
with
281 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <stdint.h> | ||
|
||
struct vfat_dir_entry { | ||
uint8_t name[11]; | ||
uint8_t attr; | ||
uint16_t time_creat; | ||
uint16_t date_creat; | ||
uint16_t time_acc; | ||
uint16_t date_acc; | ||
uint16_t cluster_high; | ||
uint16_t time_write; | ||
uint16_t date_write; | ||
uint16_t cluster_low; | ||
uint32_t size; | ||
} __attribute__((packed)); |
Oops, something went wrong.