ld_iscsi: return block size for stat and friends

This commit is contained in:
Jon Grimm
2012-09-14 12:02:05 -05:00
parent 60a96e0ebf
commit eb90ab98c1

View File

@@ -210,6 +210,7 @@ int __fxstat(int ver, int fd, struct stat *buf)
memset(buf, 0, sizeof(struct stat));
buf->st_mode = S_IRUSR | S_IRGRP | S_IROTH | S_IFREG;
buf->st_size = iscsi_fd_list[fd].num_blocks * iscsi_fd_list[fd].block_size;
buf->st_blksize = iscsi_fd_list[fd].block_size;
return 0;
}