Fix an issue with DB values over 4k when 9p database is accessed trough Hyper V

Signed-off-by: Simon Ferquel <simon.ferquel@hotmail.fr>
This commit is contained in:
Simon Ferquel 2016-09-08 14:55:26 +02:00
parent 7daf4563e5
commit 6b9a4179e6

View File

@ -35,7 +35,7 @@ void fatal(const char *msg)
static int handle(int fd, char *tag, char *path)
{
char *options = NULL;
if (asprintf(&options, "trans=fd,dfltuid=1001,dfltgid=50,version=9p2000,rfdno=%d,wfdno=%d", fd, fd) < 0){
if (asprintf(&options, "trans=fd,dfltuid=1001,dfltgid=50,version=9p2000,msize=4096,rfdno=%d,wfdno=%d", fd, fd) < 0){
fatal("asprintf()");
}
char *argv[] = {