Package: libext2fs2
Version: 1.46.5-2
Control: affects -1 + fastboot android-sdk-platform-tools

The -E android_sparse option for mke2fs fails because libext2fs2 reports
EXT2_ET_UNIMPLEMENTED, presumably because libext2fs2 isn't built with
ENABLE_LIBSPARSE .  here's the failure:


```
0 dkg@host:~$ /sbin/mke2fs tmp/control 1000
mke2fs 1.46.5 (30-Dec-2021)
Creating regular file tmp/control
Creating filesystem with 1000 1k blocks and 128 inodes

Allocating group tables: done                            
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done

0 dkg@host:~$ /sbin/mke2fs -E android_sparse tmp/test 1000
mke2fs 1.46.5 (30-Dec-2021)
Creating regular file tmp/test
tmp/test: Unimplemented ext2 library function while setting up superblock
1 dkg@host:~$ 
```

I ran into this because i wanted to call "fastboot format cache", which
failed when trying to run mke2fs.  it was trying to run it with -E
android_sparse

Looks like fastboot runs mke2fs from
/usr/lib/android-sdk/platform-tools/mke2fs, which is just a symlink back
to /sbin/mkfs, provided by android-sdk-platform-tools.

the "fastboot format cache" command instead fails with:

```
mke2fs 1.46.5 (30-Dec-2021)
/tmp/TemporaryFile-62XVjd: Unimplemented ext2 library function while setting up 
superblock
/usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
fastboot: error: Cannot generate image for cache
```

        --dkg

Attachment: signature.asc
Description: PGP signature

Reply via email to