Comment 16 for bug 26336

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 29 Nov 2005 12:31:48 +0200
From: Mikko Rapeli <email address hidden>
To: <email address hidden>
CC: <email address hidden>
Subject: genext2fs CVS version fixes this well

I took the cvs version of genext2fs for a spin:

~/src/genext2fs-cvs_29112005$ mkdir -p foo/bar/xyz
~/src/genext2fs-cvs_29112005$ ls -ld foo/*
drwxr-xr-x 3 mikko mikko 1024 2005-11-29 12:06 foo/bar

~/src/genext2fs-cvs_29112005$ ./genext2fs -d foo -b 1000 -r 0 /tmp/foo.img
~/src/genext2fs-cvs_29112005$ sudo mount -o loop -t ext2 /tmp/foo.img
/mnt/foo
~/src/genext2fs-cvs_29112005$ ls -ldR /mnt/foo/*
drwxr-xr-x 3 mikko mikko 1024 2005-11-29 12:06 /mnt/foo/bar
~/src/genext2fs-cvs_29112005$ ls -lR /mnt/foo/*
/mnt/foo/bar:
total 1
drwxr-xr-x 2 mikko mikko 1024 2005-11-29 12:06 xyz

/mnt/foo/bar/xyz:
total 0
~/src/genext2fs-cvs_29112005$ sudo umount /mnt/foo

~/src/genext2fs-cvs_29112005$ ./genext2fs --squash-uids --squash-perms
-d foo -b 1000 -r 0 /tmp/foo2.img
~/src/genext2fs-cvs_29112005$ sudo mount -o loop -t ext2 /tmp/foo2.img
/mnt/foo
~/src/genext2fs-cvs_29112005$ ls -ld /mnt/foo/bar
drwx------ 3 root root 1024 2005-11-29 12:06 /mnt/foo/bar
~/src/genext2fs-cvs_29112005$ ls -ld /mnt/foo/bar*
drwx------ 3 root root 1024 2005-11-29 12:06 /mnt/foo/bar
~/src/genext2fs-cvs_29112005$ ls -ld /mnt/foo/bar/xyz
ls: /mnt/foo/bar/xyz: Permission denied

So the --squash* options seem very handy to debian-installer for
example. It's been a while since genext2fs 1.3 release so perhaps this
cvs version could be uploaded to unstable?

-Mikko