All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Ju Hyung Park <qkrwngud825@gmail.com>
Cc: linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [PATCH 2/2] mkfs.f2fs: make the default extensions list much more sensical
Date: Tue, 16 Apr 2019 13:39:47 -0700	[thread overview]
Message-ID: <20190416203947.GA84362@jaegeuk-macbookpro.roam.corp.google.com> (raw)
In-Reply-To: <CAD14+f1JW6yaJFmuZRU2vJcREXScwm59nRvp1x2Y9Zt6n3MFXg@mail.gmail.com>

Hi Ju Hyung,

On 04/16, Ju Hyung Park wrote:
> Hi Jaegeuk, Chao.
> 
> This is a revival from a patchset I sent about a year ago.
> 
> The original patchset's list was about 50 entries and we talked about
> leaving too small room for the users to customize.
> I made much more conservative choices here to made the new one to be
> 36(from 34), while still being very practical and relevant on both
> regular Linux distros and Android.
> I hope the explanation written in the commit message is enough to persuade you.

Thank you for heads up. Taking a look at two patches, I think it'd be fine to
merge them into single patch. Let me know, if you have any concerns.

Thanks,

> 
> Thanks.
> 
> 
> On Tue, Apr 16, 2019 at 3:44 PM Park Ju Hyung <qkrwngud825@gmail.com> wrote:
> >
> > Following extensions are removed:
> >  - divx: deprecated video format and it's usually wrapped with avi
> >  - asf: deprecated streaming format
> >  - asx: redirecting file to asf(small)
> >  - wmx: redirecting file to wma/wmv(small)
> >  - rm: deprecated media container
> >  - video: unused
> >  - wv: unpopular audio format from 1998
> >
> > The extensions list is limited to 64 and those don't deserve to be
> > on this space-precious list.
> >
> > Common prefixes are introduced and are checked with
> > https://en.wikipedia.org/wiki/List_of_filename_extensions
> > to avoid treating possible hot files as cold:
> >  - mp: covers mp3, mp4, mpeg, mpg
> >  - wm: covers wma, wmb, wmv
> >  - og: covers oga, ogg, ogm, ogv
> >  - jp: covers jpg, jpeg, jp2
> >
> > Following extensions are added:
> >  - webm: extremely popular free media container format from Google
> >          VP8/VP9/AV1 and Vorbis/Opus is often wrapped with this container
> >  - wav: uncompressed audio format, commonly used with voice recorders
> >  - svg: vector image format commonly used in web
> >  - webp: free lossy image format commonly used in web
> >  - jar: Java archive file
> >  - deb: Debian software package
> >  - iso: disk image file
> >  - gz: gzip compressed file, unable to randomly update
> >  - xz: xz compressed file, unable to randomly update
> >  - zst: zstd compressed file, unable to randomly update
> >  - pdf: PDF document
> >  - pyc: Python bytecode automatically generated when
> >         executing python to run .py files
> >  - ttc, ttf: font files
> >  - cnt: image alias files commonly used in Android apps
> >  - exo: EXO player's cache files, commonly used in Android's YouTube app
> >  - odex, vdex: Android RunTime files found in /data/app/*/oat
> >
> > Total entries on the list changed from 34 to 36.
> >
> > Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
> > ---
> >  mkfs/f2fs_format.c | 50 ++++++++++++++++++++++++++--------------------
> >  1 file changed, 28 insertions(+), 22 deletions(-)
> >
> > diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
> > index 0ae0df3..4560611 100644
> > --- a/mkfs/f2fs_format.c
> > +++ b/mkfs/f2fs_format.c
> > @@ -38,48 +38,54 @@ struct f2fs_checkpoint *cp;
> >  static unsigned int quotatype_bits = 0;
> >
> >  const char *media_ext_lists[] = {
> > +       /* common prefix */
> > +       "mp", // Covers mp3, mp4, mpeg, mpg
> > +       "wm", // Covers wma, wmb, wmv
> > +       "og", // Covers oga, ogg, ogm, ogv
> > +       "jp", // Covers jpg, jpeg, jp2
> > +
> >         /* video */
> >         "avi",
> > -       "divx",
> >         "m4v",
> >         "m4p",
> > -       "mp4",
> > -       "wmv",
> > -       "mpeg",
> >         "mkv",
> >         "mov",
> > -       "asx",
> > -       "asf",
> > -       "wmx",
> > -       "svi",
> > -       "wvx",
> > -       "wm",
> > -       "mpg",
> > -       "mpe",
> > -       "rm",
> > -       "video",
> > +       "webm",
> >
> >         /* audio */
> > +       "wav",
> >         "m4a",
> > -       "mp3",
> >         "3gp",
> > -       "wma",
> > -       "wv",
> > -       "ogg",
> >         "opus",
> >         "flac",
> >
> >         /* image */
> > -       "jpeg",
> > -       "jpg",
> >         "gif",
> >         "png",
> > -
> > -       /* other */
> > +       "svg",
> > +       "webp",
> > +
> > +       /* archives */
> > +       "jar",
> > +       "deb",
> > +       "iso",
> > +       "gz",
> > +       "xz",
> > +       "zst",
> > +
> > +       /* others */
> > +       "pdf",
> > +       "pyc", // Python bytecode
> > +       "ttc",
> > +       "ttf",
> >         "exe",
> >
> >         /* android */
> >         "apk",
> > +       "cnt", // Image alias
> > +       "exo", // YouTube
> > +       "odex", // Android RunTime
> > +       "vdex", // Android RunTime
> >         "so",
> >
> >         NULL
> > --
> > 2.21.0
> >

  reply	other threads:[~2019-04-16 20:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-16  6:43 [PATCH 1/2] mkfs.f2fs: make extensions list easier to read Park Ju Hyung
2019-04-16  6:43 ` [PATCH 2/2] mkfs.f2fs: make the default extensions list much more sensical Park Ju Hyung
2019-04-16  6:49   ` Ju Hyung Park
2019-04-16 20:39     ` Jaegeuk Kim [this message]
2019-04-17  7:14       ` Ju Hyung Park
2019-04-17  9:41   ` Chao Yu
2019-04-17  9:54     ` Ju Hyung Park
2019-04-17 10:44       ` Chao Yu
2019-04-20  2:14   ` Chao Yu
2019-05-28 10:19   ` Chao Yu
2019-05-28 10:28     ` Ju Hyung Park
2019-05-29  1:57       ` Chao Yu
2019-04-17  9:33 ` [PATCH 1/2] mkfs.f2fs: make extensions list easier to read Chao Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190416203947.GA84362@jaegeuk-macbookpro.roam.corp.google.com \
    --to=jaegeuk@kernel.org \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    --cc=qkrwngud825@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.