Skip to content

index writing without mmap - #3649

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Mar 3, 2016

Copy link
Copy Markdown

@carlosmn

carlosmn commented Mar 3, 2016

Copy link
Copy Markdown
Member

It does indeed not work, but I don't see why the indexer should know about it. It's a missing feature from the emulation.

@ethomson

ethomson commented Mar 3, 2016

Copy link
Copy Markdown
Member

Indeed - the point of the emulation layer is that we don't need terrible ifdefs all over the code base.

It would be nice if you would make p_mmap and p_unmap do the write.

@ghost

ghost commented Mar 5, 2016

Copy link
Copy Markdown
Author

I can do that, but give me a day or two.

@ghost

ghost commented Apr 3, 2016

Copy link
Copy Markdown
Author

I don't want to be that guy that shows up and litters macros.
Fixed in bc609c9

@ghost

ghost commented Apr 3, 2016

Copy link
Copy Markdown
Author

Actually, I complied and tested but forgot I was on the wrong OS, I still need to test this.

Comment thread src/posix.c
return -1;
if (prot & GIT_PROT_WRITE) {
if ((p_lseek(fd, offset, SEEK_SET) < 0) || p_write(fd, out->data, len)) {
giterr_set(GITERR_OS, "index write failed");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this mention an index? The problem is trying to user mmap emulation for writable pages, which is what we don't support. Whether it's the indexer or anything else is irrelevant and having this error message doesn't explain why it failed.

@ghost

ghost commented Apr 27, 2016

Copy link
Copy Markdown
Author

I'm too lazy to worry about this anymore.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants