Displaying 20 results from an estimated 900 matches similar to: "SEEK_DATA/HOLE on ocfs2 - v2"
2013 Aug 07
1
FIEMAP problem
Hi,
We are trying to use OCFS2 as VM storage. After running into problems with 
qemu's disk_mirror feature we now think there could be a problem with the 
FIEMAP ioctl in OCFS2.
As far as I understand the situation looks like this:
Qemu inquiries the FS if the given section of the image is already allocated 
via the FIEMAP ioctl [1]
It especially checks if fm_mapped_extents is greater 0.
2019 Apr 24
2
Re: [PATCH nbdkit v5 FINAL 15/19] file: Implement extents.
On 3/28/19 11:18 AM, Richard W.M. Jones wrote:
> This uses lseek SEEK_DATA/SEEK_HOLE to search for allocated data and
> holes in the underlying file.
> ---
>  plugins/file/file.c        | 141 ++++++++++++++++++++++++++++++++++---
>  tests/Makefile.am          |   5 ++
>  tests/test-file-extents.sh |  57 +++++++++++++++
>  3 files changed, 193 insertions(+), 10 deletions(-)
2025 Mar 07
4
Support for transferring sparse files via scp/sftp correctly?
On Wed, 5 Mar 2025, Cedric Blancher wrote:
> On Tue, 4 Mar 2025 at 21:22, Chris Rapier <rapier at psc.edu> wrote:
> >
> >
> >
> > On 3/4/25 05:34, Philipp Marek via openssh-unix-dev wrote:
> > >> Does OpenSSH scp/sftp mode transfer sparse files correctly, i.e. are
> > >> holes skipped and not transferred as chunks of 0 bytes? [1]
> >
2012 May 08
4
[Bug 8918] New: Use fiemap to quickly detect zero ranges of source file
https://bugzilla.samba.org/show_bug.cgi?id=8918
           Summary: Use fiemap to quickly detect zero ranges of source
                    file
           Product: rsync
           Version: 3.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
       
2012 Feb 09
3
[PATCH] Btrfs: return EUCLEAN rather than ENXIO once internal error has occurred for SEEK_DATA/SEEK_HOLE inquiry
By referring to http://linux.die.net/man/2/lseek, return ENXIO only
when "offset beyond EOF" for either SEEK_DATA or SEEK_HOLE inquiry.
But we return it in case of internal issue too if btrfs_get_extent_fiemap() failed
due to other issues.  This will confuse the user applications to be expecting ENXIO when
trying to find a specific data or hole location once it has occurred.
Thanks Dave
2020 Feb 10
2
[nbdkit PATCH 05/10] plugins: Wire up file-based plugin support for NBD_INFO_INIT_STATE
The NBD protocol is adding an extension to let servers advertise
initialization state to the client: whether the image contains holes,
and whether it is known to read as all zeroes.  For file-based
plugins, we are already probing lseek(SEEK_HOLE) to learn if extents
are supported; a slight tweak to remember if that result is EOF tells
us if we are sparse, and a similar lseek(SEEK_DATA) returning
2025 Apr 04
2
Support for transferring sparse files via scp/sftp correctly?
On Fri, 4 Apr 2025 at 07:07, Ron Frederick <ronf at timeheart.net> wrote:
>
> On Apr 3, 2025, at 6:02?PM, Darren Tucker <dtucker at dtucker.net> wrote:
> > On Sat, 29 Mar 2025 at 16:14, Ron Frederick <ronf at timeheart.net <mailto:ronf at timeheart.net>> wrote:
> >> [...]
> >> If you don?t get all of the requested ranges in a single request,
2011 Feb 16
2
ZFS utility like Filefrag on linux to help analyzing the extents mapping
Hello All,
I''d like to know if there is an utility like `Filefrag'' shipped with e2fsprogs on linux, which is used to fetch the extents mapping info of a file(especially a sparse file) located on ZFS?
I am working on efficient sparse file detection and backup through lseek(SEEK_DATA/SEEK_HOLE)  on ZFS,  and I need to verify the result by comparing the original sparse file
and
2009 Mar 27
42
[PATCH 00/42] ocfs2: Add reflink file support. V1
Hi all,
	So I have finally finished the v1 of reflink for ocfs2. It has some 
bugs that I am still investigating, but the schema is almost there. So 
I'd like to send it out first for review. And Tristan and I will 
continue to work on the stability of the code.
The general information for reflink, please see 
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
For the design doc, please
2009 Apr 03
42
[PATCH 00/42] ocfs2: Add reflink file support. V2
Hi all,
	Change from v1 to v2: bug fix and metadata/credits reservation 
improvement.
The general information for reflink, please see
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
For the design doc, please see
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/RefcountTrees
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/ReflinkOperation
2020 Apr 09
1
[PATCH nbdkit PRELIMINARY] file: Move file operators to a new fileops mini-library
There's a lot of code in nbdkit-file-plugin which it would be nice to
reuse elsewhere.  One possible approach (as outlined here) is simply
to move the file callbacks (like file.pread, file.pwrite, file.zero
etc) to a new mini-library.  They can then be consumed by other
plugins fairly easily by doing:
static void *
foo_open (int readonly)
{
  struct fileops *fops;
  int fd, flags;
  /*
2025 Apr 04
1
Support for transferring sparse files via scp/sftp correctly?
On Apr 3, 2025, at 6:02?PM, Darren Tucker <dtucker at dtucker.net> wrote:
> On Sat, 29 Mar 2025 at 16:14, Ron Frederick <ronf at timeheart.net <mailto:ronf at timeheart.net>> wrote:
>> [...]
>> If you don?t get all of the requested ranges in a single request, additional requests can be sent starting at just past the end of the last range previously returned.
2009 Apr 30
42
[PATCH 00/39] ocfs2: Add reflink file support. V3
Hi all,
	So I have finally finished the v3 of reflink for ocfs2. The biggest 
change is that we support 64bit cluster offset now(Thank Mark and Joel 
for it).
[View]
http://oss.oracle.com/git/?p=tma/linux-2.6.git;a=shortlog;h=refcount
[Pull]
git://oss.oracle.com/git/tma/linux-2.6.git refcount
The general information for reflink, please see
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
2019 Mar 23
1
Re: [PATCH nbdkit 8/8] file: Implement extents.
On 3/20/19 5:11 PM, Richard W.M. Jones wrote:
> This uses lseek SEEK_DATA/SEEK_HOLE to search for allocated data and
> holes in the underlying file.
> ---
>  plugins/file/file.c | 139 ++++++++++++++++++++++++++++++++++++++++----
>  1 file changed, 129 insertions(+), 10 deletions(-)
> 
> -int file_debug_zero;            /* to enable: -D file.zero=1 */
> +/* Any callbacks
2009 Feb 13
44
[PATCH 0/40] ocfs2: Detach ocfs2 metadata I/O from struct inode
The following series of patches attempts to detach metadata I/O from
struct inode.   They are currently tied together pretty tightly.
Metadata reads happen via the ocfs2_read_blocks() functions, writes via
both jbd2 and ocfs2_write_blocks().
- Each inode has a cache of associated metadata blocks stored on its
  ip_metadata_cache member.  The ocfs2_read/write_blocks() functions
  take a struct
2020 Apr 09
6
[PATCH nbdkit v2 0/3] Implement fileops.
Needs some work still, see in particular the commit message
for patch 3.
Rich.
2025 Mar 29
1
Support for transferring sparse files via scp/sftp correctly?
On Mar 6, 2025, at 9:38?PM, Damien Miller <djm at mindrot.org> wrote:
> If you want this to happen, I recommend starting by figuring out what
> protocol extensions need to be made, and how to support sparse files
> on system without SEEK_DATA/HOLE - it should be pretty to do this on
> upload without these flags and without extensions.
I was inspired by this thread to add sparse
2013 Oct 22
1
[PATCH 2/2] Discard unwritten ranges
---
 pxzcat.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
diff --git a/pxzcat.c b/pxzcat.c
index 9bcdc36..55ccfc0 100644
--- a/pxzcat.c
+++ b/pxzcat.c
@@ -44,10 +44,11 @@
 #include <sys/types.h>
 #include <error.h>
 #include <errno.h>
 #include <getopt.h>
 #include <pthread.h>
+#include <linux/falloc.h>
  #include <lzma.h>
  #define DEBUG
2010 Jul 12
1
[PATCH] ocfs2: Don't duplicate page passes i_size during CoW.
During CoW, actually all the pages after i_size contains
garbage data, so don't read and duplicate them.
Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
 fs/ocfs2/refcounttree.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c
index 1cf9cda..e082623 100644
--- a/fs/ocfs2/refcounttree.c
+++
2025 Apr 05
1
Support for transferring sparse files via scp/sftp correctly?
On Sat, 5 Apr 2025 at 09:07, Lionel Cons <lionelcons1972 at gmail.com> wrote:
> On Fri, 4 Apr 2025 at 07:07, Ron Frederick <ronf at timeheart.net> wrote:
> >
> > On Apr 3, 2025, at 6:02?PM, Darren Tucker <dtucker at dtucker.net> wrote:
> [...]
> > > Damien pointed out that it's possible to do a reasonable but not
> perfect sparse file support by