On May 15, 10:43 am, Amit Singh <[EMAIL PROTECTED]> wrote: > You "some values" also need to be sane values. You should fill all > size/count related fields of the structure passed to you in statfs.
Right. But I have been having trouble finding out what could be considered sane values in this regard. I have set the block size to 512 and have tried various numbers for total number of blocks. Like for instance 1000. I am setting "blocks" and "blocks free" to the same number. But it still looks like zero bytes free, and I cannot finde the connection from my returned numbers to this fact. > static int myfs_statfs(const char *path, struct statvfs *buf) > { > ... > buf->f_namemax = 255; > buf->f_bsize = 4096; > buf->f_frsize = buf->f_bsize; > buf->f_blocks = buf->f_bfree = buf->f_bavail = > 1000ULL * 1024 * 1024 * 1024 / buf->f_frsize; > buf->f_files = buf->f_ffree = 1000000000; > return 0; That got me on the track. I'm using fuse-j which apparently doesn't set frsize or bavail. That seems to have brought me forward on the issue. Thanks, -dennis --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "macfuse-devel" group. To post to this group, send email to macfuse-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/macfuse-devel?hl=en -~----------~----~----~----~------~----~------~--~---