[PATCH] volume_id: add minix detection

shen long wdlkmpx at gmail.com
Mon May 30 19:43:31 UTC 2016


I took the time to create empty files with a minix fs and test. I
attach the files in a tar.xz archive

fs.minix-v1-14chars - ok
fs.minix-v1-30chars - ok
fs.minix-v2-14chars - ok
fs.minix-v2-30chars - ok
fs.minix-v3-60chars - fail

apparently there is something different in minix v3, I don't know, but
this value doesn't work: 0x4d5a (it's in the util-linux minix.h
include )

the issue is resolved with this extra line:

  if (ms->s_magic == cpu_to_le16(0xFFFF)) goto found; /* minix V3 fs,
60 char names */

fs.minix-v3-60chars - ok

so I think it's done. But remember to add that extra line not included
in the patch..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minix.tar.xz
Type: application/octet-stream
Size: 2040 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160530/54971022/attachment.obj>


More information about the busybox mailing list