[PATCH V3 05/17] Squashfs: symlink operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/symlink.c | 118 + 1 files changed, 118 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c new file mode 100644 index 000..83d8788 --- /dev/null +++ b/fs/squ

[PATCH V3 00/17] Squashfs: compressed read-only filesystem

2009-01-05 Thread Phillip Lougher
Hi, This a second respin of the Squashfs patches incorporating the review comments received. Thanks to everyone who have sent comments. Summary of changes in patch respin: 1. Vmalloc removed, smaller PAGE_CACHE_SIZE buffers are now allocated 2. Renamed some global functions, prefixing with squa

[PATCH V3 01/17] Squashfs: inode operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/inode.c | 346 +++ 1 files changed, 346 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/inode.c b/fs/squashfs/inode.c new file mode 100644 index 000..7a63398 --- /dev/null +++ b/fs/squashf

[PATCH V3 17/17] MAINTAINERS: squashfs entry

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index befacf0..6ed506f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4049,6 +4049,13 @@ L: cbe-oss-...@ozlabs.org W: http://www.ibm.

Re: [PATCH V3 00/17] Squashfs: compressed read-only filesystem

2009-01-05 Thread Evgeniy Polyakov
Hi Phillip. On Mon, Jan 05, 2009 at 11:08:23AM +, Phillip Lougher (phil...@lougher.demon.co.uk) wrote: > This a second respin of the Squashfs patches incorporating the review comments > received. Thanks to everyone who have sent comments. > > Summary of changes in patch respin: > > 1. Vmal

[PATCH V3 11/17] Squashfs: block operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/block.c | 274 +++ 1 files changed, 274 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c new file mode 100644 index 000..c837dfc --- /dev/null +++ b/fs/squashf

[PATCH V3 14/17] Squashfs: Kconfig entry

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/Kconfig | 52 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index ff0e819..2553e0b 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -894,6 +894,58 @@ config CRAMFS

Re: [PATCH V3 02/17] Squashfs: directory lookup operations

2009-01-05 Thread Evgeniy Polyakov
Hi Phillip. One possible 'show-stopper' below and couple trivials. On Mon, Jan 05, 2009 at 11:08:23AM +, Phillip Lougher (phil...@lougher.demon.co.uk) wrote: > +static int get_dir_index_using_name(struct super_block *sb, > + u64 *next_block, int *next_offset, u64 index_st

Re: [PATCH V3 11/17] Squashfs: block operations

2009-01-05 Thread Jörn Engel
Again, none of my comments are criticism against merging squashfs. Code improvements should continue independently. On Mon, 5 January 2009 11:08:24 +, Phillip Lougher wrote: > +/* > + * Read and decompress a metadata block or datablock. Length is non-zero > + * if a datablock is being read (

Re: [PATCH 1/3]: Replace kernel/timeconst.pl with kernel/timeconst.sh

2009-01-05 Thread Jamie Lokier
Bernd Petrovitsch wrote: > I assume that the NFS-mounted root filesystem is a real distribution. Not unless you call uClinux (MMU-less) a real distribution, no. > > (* - No MMU on some ARMs, but I'm working on ARM FDPIC-ELF to add > > proper shared libs. Feel free to fund this :-) > > The

[PATCH V3 15/17] Squashfs: initrd support

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- init/do_mounts_rd.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index a7c748f..0f0f0cf 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c @@ -9,6 +9,7 @@ #include

[PATCH V3 08/17] Squashfs: fragment block operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/fragment.c | 98 1 files changed, 98 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/fragment.c b/fs/squashfs/fragment.c new file mode 100644 index 000..b5a2c15 --- /dev/null +++ b/fs/sq

[PATCH V3 02/17] Squashfs: directory lookup operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/namei.c | 242 +++ 1 files changed, 242 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/namei.c b/fs/squashfs/namei.c new file mode 100644 index 000..9e39865 --- /dev/null +++ b/fs/squashf

[PATCH V3 09/17] Squashfs: uid/gid lookup operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/id.c | 94 ++ 1 files changed, 94 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/id.c b/fs/squashfs/id.c new file mode 100644 index 000..3795b83 --- /dev/null +++ b/fs/squashfs/id.c

[PATCH V3 10/17] Squashfs: cache operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/cache.c | 412 +++ 1 files changed, 412 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/cache.c b/fs/squashfs/cache.c new file mode 100644 index 000..f29eda1 --- /dev/null +++ b/fs/squashf

Re: [PATCH 1/3]: Replace kernel/timeconst.pl with kernel/timeconst.sh

2009-01-05 Thread Bernd Petrovitsch
On Son, 2009-01-04 at 22:50 -0600, Rob Landley wrote: > On Sunday 04 January 2009 18:15:30 Bernd Petrovitsch wrote: [...] > > ACK. A bash can IMHO be expected. Even going for `dash` is IMHO somewhat > > too extreme. > > I have yet to encounter a system that uses dash _without_ bash. (All ubuntu

[PATCH V3 12/17] Squashfs: header files

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/squashfs.h | 90 ++ fs/squashfs/squashfs_fs.h| 381 ++ fs/squashfs/squashfs_fs_i.h | 45 + fs/squashfs/squashfs_fs_sb.h | 76 + 4 files changed, 592 insertions(+), 0 delet

Re: [PATCH 1/3]: Replace kernel/timeconst.pl with kernel/timeconst.sh

2009-01-05 Thread Bernd Petrovitsch
On Mon, 2009-01-05 at 02:23 +, Jamie Lokier wrote: > Bernd Petrovitsch wrote: > > > (I have 850 Linux boxes on my network with a bourne shell which > > > doesn't do $((...)). I won't be building kernels on them though :-) > > > > Believe it or not, but there are folks out there who build the

[PATCH V3 16/17] Squashfs: documentation

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- Documentation/filesystems/squashfs.txt | 225 1 files changed, 225 insertions(+), 0 deletions(-) diff --git a/Documentation/filesystems/squashfs.txt b/Documentation/filesystems/squashfs.txt new file mode 100644 index 000.

[PATCH V3 06/17] Squashfs: super block operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/super.c | 440 +++ 1 files changed, 440 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c new file mode 100644 index 000..a0466d7 --- /dev/null +++ b/fs/squashf

Re: [PATCH 1/3]: Replace kernel/timeconst.pl with kernel/timeconst.sh

2009-01-05 Thread Bernd Petrovitsch
On Mon, 2009-01-05 at 15:01 +, Jamie Lokier wrote: > Bernd Petrovitsch wrote: > > I assume that the NFS-mounted root filesystem is a real distribution. > > Not unless you call uClinux (MMU-less) a real distribution, no. Not really. > > > (* - No MMU on some ARMs, but I'm working on ARM FDPIC

[PATCH V3 13/17] Squashfs: Makefiles

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/Makefile |1 + fs/squashfs/Makefile |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/fs/Makefile b/fs/Makefile index e6f423d..3f8843c 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -73,6 +73,7 @@ obj-$(CONFIG_JBD)

Re: [PATCH V3 01/17] Squashfs: inode operations

2009-01-05 Thread Evgeniy Polyakov
Hi. On Mon, Jan 05, 2009 at 11:08:23AM +, Phillip Lougher (phil...@lougher.demon.co.uk) wrote: > +int squashfs_read_inode(struct inode *inode, long long ino) > +{ > + struct super_block *sb = inode->i_sb; > + struct squashfs_sb_info *msblk = sb->s_fs_info; > + u64 block = SQUASHFS

Re: [PATCH V3 12/17] Squashfs: header files

2009-01-05 Thread Pekka Enberg
Hi Phillip, On Mon, Jan 5, 2009 at 1:08 PM, Phillip Lougher wrote: > +#define TRACE(s, args...) pr_debug("SQUASHFS: "s, ## args) You've probably heard this before but silly "tracing" such as: TRACE("Entered squashfs_fill_superblock\n"); should really be removed from the filesystem cod

[PATCH V3 07/17] Squashfs: export operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/export.c | 155 ++ 1 files changed, 155 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/export.c b/fs/squashfs/export.c new file mode 100644 index 000..69e971d --- /dev/null +++ b/fs/squas

[PATCH V3 04/17] Squashfs: regular file operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/file.c | 502 1 files changed, 502 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/file.c b/fs/squashfs/file.c new file mode 100644 index 000..717767d --- /dev/null +++ b/fs/squashfs/

Re: [PATCH 1/3]: Replace kernel/timeconst.pl with kernel/timeconst.sh

2009-01-05 Thread Rob Landley
On Monday 05 January 2009 04:46:18 Bernd Petrovitsch wrote: > > My 850 Linux boxes are 166MHz ARMs and occasionally NFS-mounted. > > Their /bin/sh does not do $((...)), and Bash is not there at all. > > I assume that the NFS-mounted root filesystem is a real distribution. > And on the local flash i

[PATCH V3 03/17] Squashfs: directory readdir operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher --- fs/squashfs/dir.c | 235 + 1 files changed, 235 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/dir.c b/fs/squashfs/dir.c new file mode 100644 index 000..566b0ea --- /dev/null +++ b/fs/squashfs/di

Re: [PATCH 1/3]: Replace kernel/timeconst.pl with kernel/timeconst.sh

2009-01-05 Thread Rob Landley
On Monday 05 January 2009 09:01:56 Jamie Lokier wrote: > Bernd Petrovitsch wrote: > > I assume that the NFS-mounted root filesystem is a real distribution. > > Not unless you call uClinux (MMU-less) a real distribution, no. I want things to be orthogonal. The following should be completely separa