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
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 -cvs_29112005$ ls -ld foo/*
~/src/genext2fs
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 -cvs_29112005$ sudo mount -o loop -t ext2 /tmp/foo.img -cvs_29112005$ ls -ldR /mnt/foo/* -cvs_29112005$ ls -lR /mnt/foo/*
~/src/genext2fs
/mnt/foo
~/src/genext2fs
drwxr-xr-x 3 mikko mikko 1024 2005-11-29 12:06 /mnt/foo/bar
~/src/genext2fs
/mnt/foo/bar:
total 1
drwxr-xr-x 2 mikko mikko 1024 2005-11-29 12:06 xyz
/mnt/foo/bar/xyz: -cvs_29112005$ sudo umount /mnt/foo
total 0
~/src/genext2fs
~/src/genext2fs -cvs_29112005$ ./genext2fs --squash-uids --squash-perms -cvs_29112005$ sudo mount -o loop -t ext2 /tmp/foo2.img -cvs_29112005$ ls -ld /mnt/foo/bar -cvs_29112005$ ls -ld /mnt/foo/bar* -cvs_29112005$ ls -ld /mnt/foo/bar/xyz
-d foo -b 1000 -r 0 /tmp/foo2.img
~/src/genext2fs
/mnt/foo
~/src/genext2fs
drwx------ 3 root root 1024 2005-11-29 12:06 /mnt/foo/bar
~/src/genext2fs
drwx------ 3 root root 1024 2005-11-29 12:06 /mnt/foo/bar
~/src/genext2fs
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