Le 02/09/2013 22:30, christos%astron.com@localhost a écrit :
NetBSD's mtree understands different encodings for major,minor (how many bits are used for major and minor). See the mknod(8) sources. Native means NetBSD, as well as it can understand a single number which is interpreted as raw.
For whatever reason I read mknod(2) and not mknod(8). I was not looking at the correct place (e.g. the parsedev() function).
Which raises a remark here: while NetBSD's mtree can decode a "format,major,minor" value thanks to parsedev, it will encode the value as raw fts entry ("number") in the spec.
AFAICT that part is missing in libarchive, so I'll have to import it. Thanks! -- Jean-Yves Migeon