search for: access_writ

Displaying 3 results from an estimated 3 matches for "access_writ".

Did you mean: access_write
2015 Oct 29
2
[nbdkit] can't import mmap
...setup, using this python script: import mmap def config(key, value): print ("ignored parameter %s=%s" % (key, value)) def open(readonly): print ("open: readonly=%d" % readonly) f = open("disk","r+") m = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_WRITE) return (f,m) def get_size(h): size = 1024*1024 def pread(h, count, offset): (f,m) = h bytes = bytearray(m[offset:offset+count]) return bytes def pwrite(h, buf, offset): (f,m) = h m[offset:offset+len(buf)] = bytearray(buf) When I run this: /usr/sbin/nbdkit -f -v p...
2015 Oct 29
0
Re: [nbdkit] can't import mmap
...t mmap > > def config(key, value): > print ("ignored parameter %s=%s" % (key, value)) > > def open(readonly): > print ("open: readonly=%d" % readonly) > f = open("disk","r+") > m = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_WRITE) > return (f,m) > > def get_size(h): > size = 1024*1024 > > def pread(h, count, offset): > (f,m) = h > bytes = bytearray(m[offset:offset+count]) > return bytes > > def pwrite(h, buf, offset): > (f,m) = h > m[offset:offset+len(bu...
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
Hi, This is the second batch of Ocfs2 patches intended for the merge window. The 1st batch were sent out previously: http://lkml.org/lkml/2008/12/19/280 The bulk of this set is comprised of Jan Kara's patches to add quota support to Ocfs2. Many of the quota patches are to generic code, which I carried to make merging of the Ocfs2 support easier. All of the non-ocfs2 patches should have