mkfs.jffs2 device table support
Erik Andersen
andersen at codepoet.org
Sat Sep 1 04:41:34 EDT 2001
On Thu Aug 30, 2001 at 11:11:28AM +0100, David Woodhouse wrote:
>
> andersen at codepoet.org said:
> > But the device tables _do_ allow you to set permissions. :-)
>
> So you don't need root at all?
Thats that plan -- I'll have an updated device table mkfs.jffs2
patch to you over the weekend. Meanwhile, I've fixed up jffs2reader
so that it actually works, so that it default to listing the contents
of the whole fs when given no flags, and so its directory listings now
mimic the behavior of 'ls -l', i.e.:
[andersen at sage util]$ ./jffs2reader ~/buildroot/image.jffs2 -d /etc
-rw-r--r-- 1 1000 1000 270 Aug 31 00:00 /etc/fstab
lrwxrwxrwx 1 1000 1000 12 Aug 31 00:00 /etc/mtab@
-rw-r--r-- 1 1000 1000 243 Aug 31 00:00 /etc/group
-rw-r--r-- 1 1000 1000 390 Aug 31 00:00 /etc/passwd
-rw-r--r-- 1 1000 1000 293 Aug 31 00:00 /etc/shadow
-rw-r--r-- 1 1000 1000 914 Aug 31 00:00 /etc/inittab
drwxr-sr-x 1 1000 1000 0 Aug 31 00:00 /etc/init.d/
-rw-r--r-- 1 1000 1000 124 Aug 31 00:00 /etc/profile
-rw-r--r-- 1 1000 1000 4096 Aug 31 00:00 /etc/services
-rw-r--r-- 1 1000 1000 64 Aug 31 00:00 /etc/securetty
-rw-r--r-- 1 1000 1000 36 Aug 31 00:00 /etc/resolv.conf
[andersen at sage util]$ ./jffs2reader ~/buildroot/image.jffs2 -d /etc -r
-rw-r--r-- 1 1000 1000 270 Aug 31 00:00 /etc/fstab
lrwxrwxrwx 1 1000 1000 12 Aug 31 00:00 /etc/mtab@
-rw-r--r-- 1 1000 1000 243 Aug 31 00:00 /etc/group
-rw-r--r-- 1 1000 1000 390 Aug 31 00:00 /etc/passwd
-rw-r--r-- 1 1000 1000 293 Aug 31 00:00 /etc/shadow
-rw-r--r-- 1 1000 1000 914 Aug 31 00:00 /etc/inittab
drwxr-sr-x 1 1000 1000 0 Aug 31 00:00 /etc/init.d/
-rwxr-xr-x 1 1000 1000 36 Aug 31 00:00 /etc/init.d/S50hostname
-rwxr-xr-x 1 1000 1000 892 Aug 31 00:00 /etc/init.d/S05ramdisk1
-rwxr-xr-x 1 1000 1000 97 Aug 31 00:00 /etc/init.d/S20syslogd
-rwxr-xr-x 1 1000 1000 122 Aug 31 00:00 /etc/init.d/S15modules
-rwxr-xr-x 1 1000 1000 231 Aug 31 00:00 /etc/init.d/S01mount
-rwxr-xr-x 1 1000 1000 408 Aug 31 00:00 /etc/init.d/rcS
-rw-r--r-- 1 1000 1000 124 Aug 31 00:00 /etc/profile
-rw-r--r-- 1 1000 1000 4096 Aug 31 00:00 /etc/services
-rw-r--r-- 1 1000 1000 64 Aug 31 00:00 /etc/securetty
-rw-r--r-- 1 1000 1000 36 Aug 31 00:00 /etc/resolv.conf
This was needed to allow me to easily find and fix the bugs with my device
table patch for mkfs.jffs2. Seems like it should be generally useful.
Patch is attached,
-Erik
--
Erik B. Andersen email: andersee at debian.org, andersen at lineo.com
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.jffs2reader.c
Type: text/x-csrc
Size: 31156 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20010901/2602fa6b/attachment.bin
More information about the linux-mtd
mailing list