Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
650a7bd5
Commit
650a7bd5
authored
Jul 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
877bab37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
bigfile/file_file.py
bigfile/file_file.py
+3
-3
bigfile/pagefault.c
bigfile/pagefault.c
+2
-2
No files found.
bigfile/file_file.py
View file @
650a7bd5
# -*- coding: utf-8 -*-
# Wendelin.bigfile | BigFile file backend
# Copyright (C) 2014-201
5
Nexedi SA and Contributors.
# Copyright (C) 2014-201
9
Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -25,7 +25,7 @@ from io import FileIO, SEEK_SET
# XXX naming
class
BigFile_File
(
BigFile
):
# .f - io.FileI
o
to file
# .f - io.FileI
O
to file
def
__new__
(
cls
,
path_or_fd
,
blksize
):
# XXX pass flags/mode as args to ctor ?
...
...
@@ -41,7 +41,7 @@ class BigFile_File(BigFile):
f
.
seek
(
blk
*
blksize
,
SEEK_SET
)
# XXX unfortunately buffer(buf, pos) creates readonly buffer, so we
# have to use memoryview
s
# have to use memoryview
# XXX not needed after BIGFILE_USE_OLD_BUFFER support is dropped
bufmem
=
memoryview
(
buf
)
...
...
bigfile/pagefault.c
View file @
650a7bd5
/* Wendelin.bigfile | Low-level pagefault handler
* Copyright (C) 2014-201
5
Nexedi SA and Contributors.
* Copyright (C) 2014-201
9
Nexedi SA and Contributors.
* Kirill Smelkov <kirr@nexedi.com>
*
* This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -89,7 +89,7 @@ static void on_pagefault(int sig, siginfo_t *si, void *_uc)
* block is allocated dynamically at runtime, we can overlap with such
* allocation only if SIGSEGV happens in that original TLS allocation,
* which should not happen, and thus it is already a bug somewhere in
* thread datatructures. */
* thread data
s
tructures. */
static
__thread
int
in_on_pagefault
;
BUG_ON
(
in_on_pagefault
);
++
in_on_pagefault
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment