diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-11-01 08:57:49 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-12-03 06:14:05 -0500 |
commit | 553dea4dd531562688ba01c641c7f8fc7abaaf8c (patch) | |
tree | 823d2cb0b8684e7975ca3193a9fec2a53e3995b1 /fs/ubifs/ubifs.h | |
parent | a1dc080c27ec8ea7ca1c8a9b499362a71ebff792 (diff) |
UBIFS: introduce compression mount options
It is very handy to be able to change default UBIFS compressor
via mount options. Introduce -o compr=<name> mount option support.
Currently only "none", "lzo" and "zlib" compressors are supported.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r-- | fs/ubifs/ubifs.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 4d76aba57ee1..16840e099eff 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h | |||
@@ -893,13 +893,21 @@ struct ubifs_orphan { | |||
893 | /** | 893 | /** |
894 | * struct ubifs_mount_opts - UBIFS-specific mount options information. | 894 | * struct ubifs_mount_opts - UBIFS-specific mount options information. |
895 | * @unmount_mode: selected unmount mode (%0 default, %1 normal, %2 fast) | 895 | * @unmount_mode: selected unmount mode (%0 default, %1 normal, %2 fast) |
896 | * @bulk_read: enable bulk-reads | 896 | * @bulk_read: enable/disable bulk-reads (%0 default, %1 disabe, %2 enable) |
897 | * @chk_data_crc: check CRCs when reading data nodes | 897 | * @chk_data_crc: enable/disable CRC data checking when reading data nodes |
898 | * (%0 default, %1 disabe, %2 enable) | ||
899 | * @override_compr: override default compressor (%0 - do not override and use | ||
900 | * superblock compressor, %1 - override and use compressor | ||
901 | * specified in @compr_type) | ||
902 | * @compr_type: compressor type to override the superblock compressor with | ||
903 | * (%UBIFS_COMPR_NONE, etc) | ||
898 | */ | 904 | */ |
899 | struct ubifs_mount_opts { | 905 | struct ubifs_mount_opts { |
900 | unsigned int unmount_mode:2; | 906 | unsigned int unmount_mode:2; |
901 | unsigned int bulk_read:2; | 907 | unsigned int bulk_read:2; |
902 | unsigned int chk_data_crc:2; | 908 | unsigned int chk_data_crc:2; |
909 | unsigned int override_compr:1; | ||
910 | unsigned int compr_type:2; | ||
903 | }; | 911 | }; |
904 | 912 | ||
905 | /** | 913 | /** |