Questions tagged [filemap]
10 questions
14
votes
6 answers
Sharing a Windows mapped drive
I have a software archiving solution which requires a Windows share for the client but I want to actually store the files through samba on a Linux host.
This dependency requires that I have a Windows front-end to my Linux file archive.
When I map…

Bruce Chidester
- 621
- 1
- 5
- 16
7
votes
5 answers
What's the max file mapping size in 64bits machine
I'm new to 64-bits architecture. Could you tell me what's MAX file size supported by file mapping in 64 bits linux machine. I want to open more than 20GB files by file mapping, is it available?
I write a sample code. But it causes Bus Error when I…

Xuchao Zhang
- 121
- 1
- 1
- 5
4
votes
1 answer
How do the Linux kernel swap the file mapped page?
I use file mapping to read a 20 GB file. And when the main memory is exhausted, how is the kernel swapping the file mapped pages to the disk?
A possible way I guess is to set the page entry to NULL. Then next time if the page is accessed, the…

Xuchao Zhang
- 121
- 1
- 1
- 5
2
votes
1 answer
Cost of creation of boost::file_mapping object?
I have a file parser, which loads the file as a file mapping object and then maps region based on the caller's demand.
The files can be accessed locally or from over the network.
This file reading is sequential.
I have had 2 approaches -
Approach…

Ishita
- 489
- 5
- 15
2
votes
2 answers
Mercurial filemap exclude include... does it not do what docs say?
Converting from subversion, I take the opportunity to clean up the repo, and split it in three mostly independent projects. But... I have a filemap that says
exclude bot
include bot/aobiosbot.py
Which should include everything, except the "bot"…

Jürgen A. Erhard
- 4,908
- 2
- 23
- 25
1
vote
1 answer
Map bash table output to array
How can i map the value's I got from the column name into an array that i can later use in my bash script?
+------------------------------+----------+-----------+---------+
| name | status | update | version…

Jeroen Smink
- 179
- 1
- 10
1
vote
3 answers
How to regex search/replace with File::Map in largish text file with to avoid "Out of Memory"-Error?
UPDATE 2: Solved. See below.
I am in the process of converting a big txt-file from an old DOS-based library program into a more usable format. I just started out in Perl and managed to put together a script such as this one:
BEGIN {undef $/; };
open…

screen12345
- 117
- 1
- 6
1
vote
6 answers
Mercurial convert with filemap to separate subfolders creates empty repository
I have a large Hg repository (2+GB) that was converted from an svn repository. It has a number of websites in it, and we want to separate those out into separate Hg repos. The repositories are on a Windows 2008 Server and we're using the hg that…

marcel_g
- 1,980
- 2
- 17
- 19
1
vote
3 answers
How to send vector> via MapViewOfFile
I have the following code in a parent process:
vector > matrix(n); /* matrix NxM */
/* pushing data */
HANDLE hMapping = CreateFileMapping(INVALID_HANDLE_VALUE,
0, PAGE_READWRITE, 0, 2*sizeof(int) + sizeof(double)*n*m,…

zerospiel
- 632
- 8
- 20
0
votes
1 answer
Can't seem to get the exclude in the convert extension working using a filemap with Mercurial
I am trying to use the convert extension in Mercurial to create a repository from a folder currently in our "Main" repository. I am using the filemap to move (rename) this new repository to a new location however it keeps copying over all files. I…

flowy
- 482
- 2
- 6
- 15