diff options
author | Brad Conroy <bconroy@uis.edu> | 2013-10-07 14:12:35 -0500 |
---|---|---|
committer | Brad Conroy <bconroy@uis.edu> | 2013-10-07 14:12:35 -0500 |
commit | 730d5a851fd8d8d39497e1dbb334baa583816c61 (patch) | |
tree | 00ef16e65f1c50282e31cd928faff0a89aa8bb60 /toys/other/blkid.c | |
parent | 04051858fca12d1157155f0273e0f65458a51909 (diff) | |
download | toybox-730d5a851fd8d8d39497e1dbb334baa583816c61.tar.gz |
Add blkid.c
I finally figured out the NTFS labels after reading a rant on how UTF-8 rocks
and how MS switched to UTF16 or UCS1 or whatever. The reason I couldn't grep
for the label (mine was "myntfs") was that it is stored as
"m\0y\0n\0t\0f\0s\0\0" - found another good use for hexdump :)
Notes:
I only have x86 to test on, so there are a couple of places that may need
bswap_{16,32} for endianness. I used a 65k buf instead of toybuf (4k) for
simplicity, but tried to organize it for toybuf if wanted. I have info on
more fs types, to patch with after review. blkid does output for all devices
if 0 args -> read /proc/partitions?
Diffstat (limited to 'toys/other/blkid.c')
0 files changed, 0 insertions, 0 deletions