linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] mkfs.f2fs: update extension lists
@ 2018-03-17 15:02 Park Ju Hyung
  2018-03-17 15:02 ` [PATCH 2/4] mkfs.f2fs: commonize extensions by prefix Park Ju Hyung
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Park Ju Hyung @ 2018-03-17 15:02 UTC (permalink / raw)
  To: linux-f2fs-devel

Those formats are large in size and rarely updated.

Formats such as tar and zip were intentionally excluded as
those are capable of random updates.

(Added from vlc, p7zip and running
'find . -type f -size +1M |
    while read FILE; do echo ${FILE##*.}; done |
    sort | uniq -c | sort -nr'
manually)

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
---
 mkfs/f2fs_format.c | 86 ++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 64 insertions(+), 22 deletions(-)

diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
index 65692bb..3c7ce16 100644
--- a/mkfs/f2fs_format.c
+++ b/mkfs/f2fs_format.c
@@ -37,34 +37,76 @@ struct f2fs_checkpoint *cp;
 
 static unsigned int quotatype_bits = 0;
 
-const char *media_ext_lists[] = {
-	"jpg",
-	"gif",
-	"png",
+const char *cold_ext_lists[] = {
+	/* video */
 	"avi",
 	"divx",
-	"mp4",
-	"mp3",
-	"3gp",
-	"wmv",
-	"wma",
-	"mpeg",
+	"flv",
+	"m2ts",
+	"m4p",
+	"m4v",
 	"mkv",
 	"mov",
-	"asx",
-	"asf",
-	"wmx",
-	"svi",
-	"wvx",
-	"wm",
+	"mp4",
+	"mpeg",
+	"mpeg4",
 	"mpg",
-	"mpe",
-	"rm",
 	"ogg",
+	"ogm",
+	"ogv",
+	"ts",
+	"vob",
+	"wmb",
+	"wmv",
+	"webm",
+
+	/* audio */
+	"aac",
+	"ac3",
+	"dts",
+	"flac",
+	"m4a",
+	"mka",
+	"mp3",
+	"oga",
+	"wav",
+	"wma",
+
+	/* image */
+	"bmp",
+	"gif",
+	"jpg",
 	"jpeg",
-	"video",
-	"apk",	/* for android system */
-	"so",	/* for android system */
+	"png",
+	"svg",
+	"webp",
+
+	/* archive */
+	"7z",
+	"a",
+	"deb",
+	"gz",
+	"gzip",
+	"iso",
+	"jar",
+	"lzma",
+	"rar",
+	"tgz",
+	"txz",
+	"udf",
+	"xz",
+
+	/* other */
+	"pdf",
+	"ttf",
+	"ttc",
+
+	/* android */
+	"apk",
+	"exo", // YouTube
+	"odex", // Android RunTime
+	"vdex", // Android RunTime
+	"so",
 	NULL
 };
 
@@ -74,7 +116,7 @@ const char *hot_ext_lists[] = {
 };
 
 const char **default_ext_list[] = {
-	media_ext_lists,
+	cold_ext_lists,
 	hot_ext_lists
 };
 
-- 
2.16.2


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-04-03  3:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-17 15:02 [PATCH 1/4] mkfs.f2fs: update extension lists Park Ju Hyung
2018-03-17 15:02 ` [PATCH 2/4] mkfs.f2fs: commonize extensions by prefix Park Ju Hyung
2018-03-17 15:02 ` [PATCH 3/4] mkfs.f2fs: remove 'a' from cold_ext_lists[] Park Ju Hyung
2018-03-17 15:02 ` [PATCH 4/4] mkfs.f2fs: print the default list if no argument is given to -e and -E Park Ju Hyung
2018-03-19  3:42 ` [PATCH 1/4] mkfs.f2fs: update extension lists Chao Yu
2018-03-19  3:53   ` Ju Hyung Park
2018-03-21 12:00     ` Chao Yu
2018-03-24  6:55       ` Ju Hyung Park
2018-03-28  2:40         ` Chao Yu
2018-03-29  2:18           ` Ju Hyung Park
2018-03-29  4:04             ` Chao Yu
2018-03-29 15:54               ` Ju Hyung Park
2018-03-30 11:19                 ` Chao Yu
2018-03-30 13:13                   ` Ju Hyung Park
2018-04-03  3:10                     ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).