Displaying 20 results from an estimated 1136 matches for "pread".
Did you mean:
read
2016 Jul 02
3
Winbind process stuck at 100% after changing use_mmap to no
On 01/07/16 19:28, Jeremy Allison wrote:
> On Fri, Jul 01, 2016 at 10:00:21AM +0100, Alex Crow wrote:
>> Hi,
>>
>> We've had a strange issue after following the recommendations at
>> https://wiki.samba.org/index.php/Ping_pong, particularly the part
>> about mmap coherence. We are running CTDB/Samba over a MooseFS
>> clustered FS, and we'd not done the
2008 Mar 18
1
how to log only opened files via vfs_modules?
...ows explorer but I must know
which one was opened.
Its generate me a lot of unnecessary entrys in /var/log/messages.
Other operations on files like remove delete or rename are logged
correctly.
PLEASE HELP !
See my smb.conf
Mar 18 09:54:00 localhost smbd_audit:
fujitsu|sm17|10.10.10.160|skany|pread|ok|2007/11005_07.tif
Mar 18 09:54:00 localhost smbd_audit:
fujitsu|sm17|10.10.10.160|skany|pread|ok|2007/12795_07.tif
Mar 18 09:54:00 localhost smbd_audit:
fujitsu|sm17|10.10.10.160|skany|pread|ok|2007/12795_07.tif
Mar 18 09:54:00 localhost smbd_audit:
fujitsu|sm17|10.10.10.160|skany|pread|ok|20...
2019 Nov 25
3
[PATCH nbdkit 0/2] python: Implement pread passing buffer for v2 API.
As suggested by Nir, here:
https://www.redhat.com/archives/libguestfs/2019-November/thread.html#00220
2019 Nov 25
0
[PATCH nbdkit 1/2] python: For v2 API, avoid copy by passing a buffer to pread.
...| 5 ++--
5 files changed, 36 insertions(+), 29 deletions(-)
diff --git a/plugins/python/example.py b/plugins/python/example.py
index c85d2f8..c04b7e2 100644
--- a/plugins/python/example.py
+++ b/plugins/python/example.py
@@ -60,10 +60,12 @@ def get_size(h):
return len(disk)
-def pread(h, count, offset, flags):
+def pread(h, buf, offset, flags):
global disk
- return disk[offset:offset+count]
-
+ end = offset + len(buf)
+ buf[:] = disk[offset:end]
+ # or if reading from a file you can use:
+ #f.readinto(buf)
def pwrite(h, buf, offset, flags):
global dis...
2016 May 05
3
pread() failures when using mdbox on btrfs
(Note: I am not subscribed to this ML, so please be sure to CC me in replies.)
Hello,
I see a strange bug when running dovecot under btrfs with a mailbox in mdbox
format. At some point, which can take a few minutes or more than a day,
dovecot starts logging pread() failures, like so:
Apr 02 23:43:42 thetick dovecot[570]: imap(marcec): Error: pread() failed with
file /home/marcec/.mdbox/mailboxes/LinuxAudio/User/dbox-
Mails/dovecot.index.log: Input/output error
These would trigger when getmail runs (which in turn is configured to use
dovecot-lda). It...
2019 Nov 23
1
[PATCH] python: Support buffer protocol for pread() result
pread() can return now any object supporting the buffer protocol[1] such
as bytearray, bytes, or memoryview.
[1] https://docs.python.org/3/c-api/buffer.html
---
When the new python tests will be in master we can add some automated tests.
For now I tested this manually using the example plugin as is an...
2008 Jan 23
3
Slow header fetching rate over nfs mailspool.
...load those headers.
--------------------------------------------
17:19:27.670428 open("/dap/mstorage/example.com/dino/Maildir/cur/
1201079181.H112920P11724.mx01.example.com,S=3841:2,", O_RDONLY) = 11
17:19:27.670631 fstat(11, {st_mode=S_IFREG|0600, st_size=3841, ...}) = 0
17:19:27.670691 pread(11, "Return-path: <dino at example.com>\nE"...,
4096, 0) = 3841
17:19:31.725525 pread(11, "", 255, 3841) = 0
17:19:31.725624 pread(11, "Return-path: <dino at example.com>\nE"...,
4096, 0) = 3841
17:19:31.725729 pread(11, "Return-path: <dino at e...
2016 Jan 06
0
[klibc:master] Add pread and pwrite 32bit syscall wrappers for parisc
...//git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=75895304280f597f46551deb8b87c27ac18a013c
Author: Helge Deller <deller at gmx.de>
AuthorDate: Wed, 6 Jan 2016 00:43:50 +0000
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Tue, 5 Jan 2016 17:45:50 -0800
[klibc] Add pread and pwrite 32bit syscall wrappers for parisc
On the hppa arch (32bit userspace and 32 or 64bit kernel), the fstype
program fails to detect the filesystem. The reason for this failure
is, that fstype calls the pread() syscall, which has on some
architectures with 32bit userspace a different callin...
2018 Dec 06
0
Dovecot 2.3.4 crashing on Solaris 10 - "Panic: output stream is missing error handling"
...)
doveconf: Panic: output stream is missing error handling
/1: write(2, " d o v e c o n f : P a".., 58) = 58
/1: getcontext(0xFFBFE988)
/1: open("/proc/self/as", O_RDONLY) = 8
/1: fstat64(8, 0xFFBFE7B8) = 0
/1: pread(8, "FFBFEB H", 4, 0xFFBFE958) = 4
/1: pread(8, "FF\0CBD0", 4, 0xFFBFE95C) = 4
/1: pread(8, "FFBFEBA8", 4, 0xFFBFEB80) = 4
/1: pread(8, "FF01B11C", 4, 0xFFBFEB84) = 4
/1: pread(8, "FFBFEC\b&q...
2003 Feb 26
0
performance problem with Samba built with pread/pwrite on HP-UX 1 1.11
...n 11.11 could
be affected.
Customers building their own Samba server can find that on 11.11 the
performance is slower than on 11.0 when testing with smbtorture, and
possibly slower in production. The HP produced Samba version did not have
this performance drop, because the HP version did not use pread/pwrite
calls. Also note that the problem only affects systems running on top of
JFS file systems.
Version 2.2.2 Samba can be built to use system calls pread/pwrite, instead
of using a combination of lseek (to move the pointer in the file), and
read/write. The pread/pwrite calls are fairly new to...
2019 Apr 23
0
[PATCH nbdkit v2 1/2] ocaml: Change pread method to avoid leaking heap memory.
In the C part of the OCaml plugin we created a ‘bytes’ [byte array]
and passed it to the OCaml pread method. The plugin is supposed to
overwrite the array with the returned data.
However if (eg. because of a bug) the plugin does not fill the array
then whatever was in the OCaml or possibly even the C heap before the
allocation is returned to the client, possibly resulting in a leak of
sensitive...
2019 Apr 23
2
Re: [PATCH nbdkit v2 1/2] ocaml: Change pread method to avoid leaking heap memory.
On 4/23/19 10:09 AM, Richard W.M. Jones wrote:
> In the C part of the OCaml plugin we created a ‘bytes’ [byte array]
> and passed it to the OCaml pread method. The plugin is supposed to
> overwrite the array with the returned data.
>
> However if (eg. because of a bug) the plugin does not fill the array
> then whatever was in the OCaml or possibly even the C heap before the
> allocation is returned to the client, possibly resultin...
2015 Jan 04
2
A lot of messages in full_audit log
...9;m using full_audit vfs module and I'm seeing a lot of duplicated messages
in log file. Why does it happens ?
How can I configure de smb.conf not to log duplicated information ?
Duplicated log:
Jan 4 13:27:50 server smbd_audit: [2015/01/04
13:27:50|semirames|samba-admin|192.168.0.3|setores]|pread|ok|Atendimento/James.txt
Jan 4 13:27:50 server smbd_audit: [2015/01/04
13:27:50|semirames|samba-admin|192.168.0.3|setores]|pread|ok|Atendimento/James.txt
Jan 4 13:27:50 server smbd_audit: [2015/01/04
13:27:50|semirames|samba-admin|192.168.0.3|setores]|pread|ok|Atendimento/James.txt
Jan 4 13:27:5...
2020 Apr 01
2
Re: [nbdkit PATCH] retry: Tweak error message
...p/inject)& ./nbdkit -f -v -U - \
>> null 1G --filter=retry --filter=noextents --filter=error error-rate=100% \
>> error-file=/tmp/inject --filter=delay rdelay=1 \
>> --run 'qemu-img convert $nbd out.img'
>> ...
>> nbdkit: null[1]: debug: noextents: pread count=2097152 offset=14680064
>> nbdkit: null[1]: debug: error: pread count=2097152 offset=14680064
>> nbdkit: null[1]: error: injecting EIO error into pread
>> nbdkit: null[1]: debug: retry 6: original errno = 5
>> nbdkit: null[1]: debug: could not recover after 5 retries
&...
2009 Oct 15
3
1.2.6 Spurious pread()/stream errors/index corruption
...log file /nmail/noc4/cache/dovecot.index.log seq 2: unexpected
end of file while reading header (sync_offset=0)
Oct 15 09:40:59 10.0.1.2 dovecot: IMAP(paul at noc4.net): Unexpected eof
found when reading file 'UNOPENED' (Errcode: -1)
Oct 15 09:40:59 10.0.1.2 dovecot: IMAP(paul at noc4.net): pread() failed with
file /nmail/noc4/cache/dovecot.index.log: Success
Oct 15 09:40:59 10.0.1.2 dovecot: IMAP(paul at noc4.net): Unexpected eof
found when reading file 'UNOPENED' (Errcode: -1)
Oct 15 09:40:59 10.0.1.2 dovecot: IMAP(paul at noc4.net): pread() failed with
file /nmail/noc4/cache/dove...
2005 Jul 12
1
problem mounting ocfs2: heartbeat
When attempting to mount the OCFS2 file system I'm getting the
following error message:
ocfs2_hb_ctl: Internal logic failure while starting heartbeat
mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl:
"Operation not permitted"
I followed the steps given in the users_guide:
modprobe ocfs2_dlmfs
mount -t configfs none /config
mount -t ocfs2_dlmfs none /dlm
o2cb_ctl
2009 Nov 25
1
[PATCH] daemon/Win32: Replace pread on platforms that don't have this function.
...: http://et.redhat.com/~rjones/libguestfs/recipes.html
-------------- next part --------------
>From 81982306dd5e8beb56e193ed69d840a1cb976d62 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Wed, 25 Nov 2009 11:59:20 +0000
Subject: [PATCH 1/2] daemon/Win32: Replace pread on platforms that don't have this function.
---
daemon/configure.ac | 1 +
daemon/file.c | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/daemon/configure.ac b/daemon/configure.ac
index 89bd800..e70f05e 100644
--- a/daemon/configure.ac
+++...
2009 Nov 07
1
Fwd: [PATCH (geoip)] use IO.pread from the io-extra lib if possible
I sent this to the author of geoip a few days ago and haven''t heard
back, yet. Since he may be on vacation or busy, somebody may also hit
this problem in the mean time, I figured I''d post the patch + git
repo I sent him here.
Unicorn users:
The pread(2)/pwrite(2) syscalls are very useful for making libraries
like this one (that rely on an on-disk database) compatible with
preload_app. TokyoCabinet is a great example of a library that''s
already compatible with Unicorn+preload_app out-of-the-box.
----- Forwarded message from Eric...
2019 Apr 01
1
Readahead in the nbdkit curl plugin
...xtending the curl plugin so it's doing
caching as well (essentially what qemu does IIUC).
We already have a cache filter so I have two ideas:
(1) Modify nbdkit-cache-filter to add a readahead parameter.
This would work something like as follows: If the cache does not map
any data following a pread request (up to the size of the readahead),
then the pread request to the underlying plugin is extended, and the
data added to the cache (but not returned upwards). Prefetched data
is read from cache as usual.
Unfortunately this could slow down all pread requests, since there's
no easy way in...
2019 Apr 23
4
[PATCH nbdkit v2 0/2] Be careful not to leak server heap memory to the client.
Version 1 was here:
https://www.redhat.com/archives/libguestfs/2019-April/msg00144.html
Version 2 makes a couple of much larger changes:
The OCaml patch changes the API of the pread method so it matches what
other language bindings are already doing, ie. get the language plugin
to return a newly allocated buffer, check it is long enough, copy out
the data.
The server patch implements a per-thread buffer for all pread and
pwrite calls which is zeroed whenever it is extended to...