Displaying 20 results from an estimated 6000 matches similar to: "6303398 lseek(., offset, SEEK_HOLE) asserts with tainted offsets"
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
2018 Mar 17
0
Terrible share access performance (v.4.8 and current master branch)
Hello!
When I'm using qBittorrent [1] on Windows 10 with download location
set to remote Samba share on Arch Linux then it severely affects all
shares on that host, unrelated to disk where qBittorrent is actually
writing.
On Arch Linux that smbd process is using 100% of one CPU core time and
seems it's blocking because of lseek calls.
strace shows full of
lseek(47, 1420820480,
2019 Apr 25
0
Re: [PATCH nbdkit v5 FINAL 15/19] file: Implement extents.
On Wed, Apr 24, 2019 at 02:39:03PM -0500, Eric Blake wrote:
> 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 ++
> >
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(-)
2019 Mar 20
0
[PATCH nbdkit 8/8] file: Implement extents.
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(-)
diff --git a/plugins/file/file.c b/plugins/file/file.c
index 628f8fb..22fdfcd 100644
--- a/plugins/file/file.c
+++ b/plugins/file/file.c
@@ -1,5 +1,5 @@
/* nbdkit
- *
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
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
2019 Mar 28
0
[PATCH nbdkit v5 FINAL 15/19] file: Implement extents.
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(-)
diff --git a/plugins/file/file.c b/plugins/file/file.c
index 628f8fb..2fbc2a3 100644
2020 Apr 09
0
[PATCH nbdkit v2 1/3] file: Move file operators to a new common/fileops mini-library.
Writing "file-like" plugins is hard because you have to implement your
own .zero, .trim, .extents, etc, and that is very complicated.
However implementations of these functions already exist in the file
plugin. By factoring out the file plugin into a separate "fileops"
mini-library we can reuse these implementations in other plugins.
This refactoring commit creates a new
2020 Feb 11
0
Re: [nbdkit PATCH 05/10] plugins: Wire up file-based plugin support for NBD_INFO_INIT_STATE
On Mon, Feb 10, 2020 at 03:43:58PM -0600, Eric Blake wrote:
> @@ -214,6 +217,52 @@ file_open (int readonly)
> h->can_fallocate = true;
> h->can_zeroout = h->is_block_device;
>
> + h->can_extents = false;
> + h->init_sparse = false;
> + h->init_zero = false;
> +#ifdef SEEK_HOLE
> + if (!h->is_block_device) {
> + off_t r;
> +
> +
2020 Feb 10
1
[nbdkit PATCH] split: Add support for .extents
Copies somewhat from the file plugin, with the difference that we
always provide an .extents even if one or more of the split files does
not support SEEK_HOLE.
Testing is possible on a file system that supports sparse files when
using nbdsh.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
I'm going ahead and committing this, but am also posting this for
review in case we later find
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
2020 Aug 07
0
[nbdkit PATCH 2/4] file: Add .list_exports support
Add a new mode to the file plugin, using directory=DIR instead of
[file=]FILE, to allow it to serve all regular/block files in a given
directory, as well as advertising the names of those files it will be
serving.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
plugins/file/nbdkit-file-plugin.pod | 28 +++++-
tests/Makefile.am | 4 +-
plugins/file/file.c
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
2019 Apr 25
1
[nbdkit PATCH] noextents: Document use case with tmpfs
tmpfs has a known bug of O(n^2) behavior with lseek(SEEK_HOLE); this
is one situation where the noextents filter can come in handy to avoid
the performance penalty of exposing accurate extents.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
filters/noextents/nbdkit-noextents-filter.pod | 7 ++++++-
plugins/file/nbdkit-file-plugin.pod | 9 ++++++++-
2 files changed, 14
2003 Sep 06
0
KERNEL BUG: lseek() broken on raw devices
Hi,
I just figured FreeBSD will happily write data (disk blocks) from byte
#0 even after successful lseek(fd, 17, SEEK_SET) returned 17, at least
on da(4) partitions such as rda0s1f. Tested on 4.9-PRERELEASE checked
out early Sep 5th.
I'd suggest that lseek to a non-sector boundary returns either (off_t)-1
and EINVAL (preferred) or at least returns the actual position (though
few
2012 May 21
0
[klibc:master] lseek: give gcc a little optimization hint
Commit-ID: 2024ab7832dea5dc004f712ffdf348b8239b8ffa
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=2024ab7832dea5dc004f712ffdf348b8239b8ffa
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 21 May 2012 10:28:50 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 21 May 2012 10:30:39 -0700
[klibc] lseek: give gcc a little
2018 Apr 30
0
[PATCH 1/4] daemon: upload: fix fd leak on lseek failure
Make sure to not leak the file descriptor in the upload() function, in
case lseek() fails.
---
daemon/upload.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/daemon/upload.c b/daemon/upload.c
index 9de855f86..540a86437 100644
--- a/daemon/upload.c
+++ b/daemon/upload.c
@@ -111,6 +111,7 @@ upload (const char *filename, int flags, int64_t offset)
if (lseek (fd, offset, SEEK_SET) == -1) {
2018 Jun 29
2
[Bug 13496] New: lseek returned -1, not 2147483648: Invalid argument (22)
https://bugzilla.samba.org/show_bug.cgi?id=13496
Bug ID: 13496
Summary: lseek returned -1, not 2147483648: Invalid argument
(22)
Product: rsync
Version: 3.1.2
Hardware: Sparc
OS: Solaris
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee:
2013 Mar 07
2
KVM Raw Format Image Causes lseek Error when Copying
When copying a raw KVM image to my usb drive I got a lseek error...why is this?
localhost temp # lr /kvm_guests/newInstall.img?
-rw-r--r-- 1 root root 10G Oct 22 05:36 /kvm_guests/newInstall.img
localhost temp #
localhost temp # cp /kvm_guests/newInstall.img . ? ? ? ? ? ? ? ? ? ? ?
cp: cannot lseek `./newInstall.img': Invalid argument
localhost temp # df -h
Filesystem ? ? ?Size ?Used Avail