porting from cramfs 1.1