From: Namjae Jeon <namjae.jeon@samsung.com> To: "'Michael Kerrisk'" <mtk.manpages@gmail.com> Cc: "'Dave Chinner'" <david@fromorbit.com>, "'Theodore Ts'o'" <tytso@mit.edu>, "'Linux-Fsdevel'" <linux-fsdevel@vger.kernel.org>, "'Linux Kernel'" <linux-kernel@vger.kernel.org>, linux-ext4@vger.kernel.org, xfs@oss.sgi.com, a.sangwan@samsung.com, bfoster@redhat.com, "'Linux API'" <linux-api@vger.kernel.org>, "'Namjae Jeon'" <linkinjeon@gmail.com> Subject: RE: [PATCH v9 0/11] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate Date: Thu, 22 Jan 2015 17:52:21 +0900 [thread overview] Message-ID: <003901d03620$bbf4a450$33ddecf0$@samsung.com> (raw) In-Reply-To: <CAHO5Pa3HnzP=KcBQOWDEkBqppMGXJ2kzfNKj21ruQ5SvWnms2g@mail.gmail.com> > [CC += linux-api] > > Hello Namjae > > Please, all patches such as this that touch the user-space ABI must CC > linux-api@. (The kernel source file Documentation/SubmitChecklist > notes that all Linux kernel patches that change userspace interfaces > should be CCed to linux-api@vger.kernel.org. See also > https://www.kernel.org/doc/man-pages/linux-api-ml.html ) Hi Michael, I will keep that in mind. Thank you! > > Thanks, > > Michael > > > On Wed, Jan 21, 2015 at 4:11 PM, Namjae Jeon <linkinjeon@gmail.com> wrote: > > From: Namjae Jeon <namjae.jeon@samsung.com> > > > > In continuation of the work of making the process of non linear editing of > > media files faster, we introduce here the new flag FALLOC_FL_INSERT_RANGE > > for fallocate. > > > > This flag will work opposite to the FALLOC_FL_COLLAPSE_RANGE flag. > > As such, specifying FALLOC_FL_INSERT_RANGE flag will create new space inside file > > by inserting a hole within the range specified by offset and len. > > User can write new data in this space. e.g. ads. > > Like collapse range, currently we have the limitation that offset and len should > > be block size aligned for both XFS and Ext4. > > > > The semantics of the flag are : > > 1) It creates space within file by inserting a hole of len bytes starting > > at offset byte without overwriting any existing data. All the data blocks > > from offset to EOF are shifted towards right to make hole space. > > 2) It should be used exclusively. No other fallocate flag in combination. > > 3) Offset and length supplied to fallocate should be fs block size aligned > > in case of xfs and ext4. > > 4) Insert range does not work for the case when offset is overlapping/beyond > > i_size. If the user wants to insert space at the end of file they are > > advised to use either ftruncate(2) or fallocate(2) with mode 0. > > 5) It increses the size of file by len bytes. > > > > > > Namjae Jeon (11): > > fs: Add support FALLOC_FL_INSERT_RANGE for fallocate > > xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate > > ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate > > xfsprogs: xfs_io: add finsert command for insert range via fallocate > > xfstests: generic/039: Standard insert range tests > > xfstests: generic/040: Delayed allocation insert range > > xfstests: generic/041: Multi insert range tests > > xfstests: generic/042: Delayed allocation multi insert > > xfstests: generic/043: Test multiple fallocate insert/collapse range calls > > xfstests: fsstress: Add fallocate insert range operation > > xfstests: fsx: Add fallocate insert range operation > > -- > > 1.7.9.5 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Please read the FAQ at http://www.tux.org/lkml/ > > > > -- > Michael Kerrisk Linux man-pages maintainer; > http://www.kernel.org/doc/man-pages/ > Author of "The Linux Programming Interface", http://blog.man7.org/
WARNING: multiple messages have this Message-ID (diff)
From: Namjae Jeon <namjae.jeon@samsung.com> To: 'Michael Kerrisk' <mtk.manpages@gmail.com> Cc: 'Namjae Jeon' <linkinjeon@gmail.com>, 'Theodore Ts'o' <tytso@mit.edu>, 'Linux API' <linux-api@vger.kernel.org>, bfoster@redhat.com, 'Linux Kernel' <linux-kernel@vger.kernel.org>, xfs@oss.sgi.com, a.sangwan@samsung.com, 'Linux-Fsdevel' <linux-fsdevel@vger.kernel.org>, linux-ext4@vger.kernel.org Subject: RE: [PATCH v9 0/11] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate Date: Thu, 22 Jan 2015 17:52:21 +0900 [thread overview] Message-ID: <003901d03620$bbf4a450$33ddecf0$@samsung.com> (raw) In-Reply-To: <CAHO5Pa3HnzP=KcBQOWDEkBqppMGXJ2kzfNKj21ruQ5SvWnms2g@mail.gmail.com> > [CC += linux-api] > > Hello Namjae > > Please, all patches such as this that touch the user-space ABI must CC > linux-api@. (The kernel source file Documentation/SubmitChecklist > notes that all Linux kernel patches that change userspace interfaces > should be CCed to linux-api@vger.kernel.org. See also > https://www.kernel.org/doc/man-pages/linux-api-ml.html ) Hi Michael, I will keep that in mind. Thank you! > > Thanks, > > Michael > > > On Wed, Jan 21, 2015 at 4:11 PM, Namjae Jeon <linkinjeon@gmail.com> wrote: > > From: Namjae Jeon <namjae.jeon@samsung.com> > > > > In continuation of the work of making the process of non linear editing of > > media files faster, we introduce here the new flag FALLOC_FL_INSERT_RANGE > > for fallocate. > > > > This flag will work opposite to the FALLOC_FL_COLLAPSE_RANGE flag. > > As such, specifying FALLOC_FL_INSERT_RANGE flag will create new space inside file > > by inserting a hole within the range specified by offset and len. > > User can write new data in this space. e.g. ads. > > Like collapse range, currently we have the limitation that offset and len should > > be block size aligned for both XFS and Ext4. > > > > The semantics of the flag are : > > 1) It creates space within file by inserting a hole of len bytes starting > > at offset byte without overwriting any existing data. All the data blocks > > from offset to EOF are shifted towards right to make hole space. > > 2) It should be used exclusively. No other fallocate flag in combination. > > 3) Offset and length supplied to fallocate should be fs block size aligned > > in case of xfs and ext4. > > 4) Insert range does not work for the case when offset is overlapping/beyond > > i_size. If the user wants to insert space at the end of file they are > > advised to use either ftruncate(2) or fallocate(2) with mode 0. > > 5) It increses the size of file by len bytes. > > > > > > Namjae Jeon (11): > > fs: Add support FALLOC_FL_INSERT_RANGE for fallocate > > xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate > > ext4: Add support FALLOC_FL_INSERT_RANGE for fallocate > > xfsprogs: xfs_io: add finsert command for insert range via fallocate > > xfstests: generic/039: Standard insert range tests > > xfstests: generic/040: Delayed allocation insert range > > xfstests: generic/041: Multi insert range tests > > xfstests: generic/042: Delayed allocation multi insert > > xfstests: generic/043: Test multiple fallocate insert/collapse range calls > > xfstests: fsstress: Add fallocate insert range operation > > xfstests: fsx: Add fallocate insert range operation > > -- > > 1.7.9.5 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Please read the FAQ at http://www.tux.org/lkml/ > > > > -- > Michael Kerrisk Linux man-pages maintainer; > http://www.kernel.org/doc/man-pages/ > Author of "The Linux Programming Interface", http://blog.man7.org/ _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2015-01-22 8:52 UTC|newest] Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-01-21 15:11 [PATCH v9 0/11] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate Namjae Jeon 2015-01-21 15:11 ` Namjae Jeon 2015-01-21 15:11 ` [PATCH v9 1/11] fs: Add support " Namjae Jeon 2015-01-21 15:11 ` Namjae Jeon 2015-01-21 15:11 ` [PATCH v9 2/11] xfs: " Namjae Jeon 2015-01-21 15:11 ` Namjae Jeon 2015-01-21 15:11 ` [PATCH v9 3/11] ext4: " Namjae Jeon 2015-01-21 15:11 ` Namjae Jeon 2015-01-21 15:11 ` [PATCH v9 4/11] xfsprogs: xfs_io: add finsert command for insert range Namjae Jeon 2015-01-21 15:11 ` Namjae Jeon 2015-02-05 23:40 ` Dave Chinner 2015-02-05 23:40 ` Dave Chinner 2015-02-06 3:11 ` Dave Chinner 2015-02-06 3:11 ` Dave Chinner 2015-02-06 4:27 ` Namjae Jeon 2015-02-06 4:27 ` Namjae Jeon 2015-01-21 15:12 ` [PATCH v9 5/11] xfstests: generic/039: Standard insert range tests Namjae Jeon 2015-01-21 15:12 ` Namjae Jeon 2015-01-21 15:12 ` [PATCH v9 6/11] xfstests: generic/040: Delayed allocation insert range Namjae Jeon 2015-01-21 15:12 ` Namjae Jeon 2015-01-21 15:12 ` [PATCH v9 7/11] xfstests: generic/041: Multi insert range tests Namjae Jeon 2015-01-21 15:12 ` Namjae Jeon 2015-01-21 15:12 ` [PATCH v9 8/11] xfstests: generic/042: Delayed allocation multi insert Namjae Jeon 2015-01-21 15:12 ` Namjae Jeon 2015-01-21 15:12 ` [PATCH v9 9/11] xfstests: generic/043: Test multiple fallocate insert/collapse range calls Namjae Jeon 2015-01-21 15:12 ` Namjae Jeon 2015-01-21 15:12 ` [PATCH v9 10/11] xfstests: fsstress: Add fallocate insert range operation Namjae Jeon 2015-01-21 15:12 ` Namjae Jeon 2015-01-21 15:12 ` [PATCH v9 11/11] xfstests: fsx: " Namjae Jeon 2015-01-21 15:12 ` Namjae Jeon 2015-01-22 8:16 ` [PATCH v9 0/11] fs: Introduce FALLOC_FL_INSERT_RANGE for fallocate Michael Kerrisk 2015-01-22 8:16 ` Michael Kerrisk 2015-01-22 8:52 ` Namjae Jeon [this message] 2015-01-22 8:52 ` Namjae Jeon
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='003901d03620$bbf4a450$33ddecf0$@samsung.com' \ --to=namjae.jeon@samsung.com \ --cc=a.sangwan@samsung.com \ --cc=bfoster@redhat.com \ --cc=david@fromorbit.com \ --cc=linkinjeon@gmail.com \ --cc=linux-api@vger.kernel.org \ --cc=linux-ext4@vger.kernel.org \ --cc=linux-fsdevel@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mtk.manpages@gmail.com \ --cc=tytso@mit.edu \ --cc=xfs@oss.sgi.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: linkBe 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.