Hello,
I mapped a file to the memory, then copy n chars to this memory. 
This should invoke ufs_putpage and the third arg 'len' should be n. However I 
found the len is not n but 0. I don't  know why the len is 0.

If the code is like below:
char* src;
char buff[] = "Hello";
...
src=mmap(fd, size, ...);
for(i=0; i<sizeof(buff); i++)
    src[i] = buff[i];

when the ufs_putpage is called?
 
 
This message posted from opensolaris.org
_______________________________________________
ufs-discuss mailing list
[email protected]

Reply via email to