Re: [PATCH take 2 08/28] UBIFS: add superblock and master node

From: Artem Bityutskiy
Date: Wed May 07 2008 - 02:08:41 EST


Hi,

Kyungmin Park wrote:
Here's one proposal. Please add the no compressed mode support.
In my simple test. it's working with no compress mode.
Yes I know, it makes the performance poor. but we can measure the
metadata operation overhead compare to the previous flash filesystems.

We support "no compression" node already. You may do one of the following:

1. Disable compression support in configuration menu, in which case
"no compression" will be the only option.
2. When you create your file-system with mkfs.ubifs, use "--compr none",
in which case the default compression mode will be "none". But it does
not mean you will not be able to enable compression for certain files.
3. Use "chattr -c <file name>" (or IOC_SETFLAGS ioctl) to disable
compression for a specific file.

+/* The default maximum size of reserved pool in bytes */
+#define DEFAULT_MAX_RP_SIZE (5*1024*1024)
+
+/* Default UBIFS compressor */
+#define DEFAULT_COMPRESSOR UBIFS_COMPR_LZO
+

#ifdef CONFIG_UBIFS_FS_NO_COMPR
#define DEFAULT_COMPRESSOR UBIFS_COMPR_NONE
#else
#define DEFAULT_COMPRESSOR UBIFS_COMPR_LZO
#endif

DEFAULT_COMPRESSOR is just default compressor which is used
when UBIFS mounts an empty volume and formats it automatically.
You may use mkfs.ubifs instead and pre-format the volume, in which
case you may specify "none" compression method.

--
Best Regards,
Artem Bityutskiy (ÐÑÑÑÐ ÐÐÑÑÑÐÐÐ)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/