Message ID | 50C71625.1010003@codesrc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- utils.c.orig 2012-12-11 21:00:07.000000000 +1000 +++ utils.c 2012-12-11 21:00:26.000000000 +1000 @@ -653,16 +653,16 @@ { int loop_fd; int ret_ioctl; - struct loop_info loopinfo; + struct loop_info64 loopinfo; if ((loop_fd = open(loop_dev, O_RDONLY)) < 0) return -errno; - ret_ioctl = ioctl(loop_fd, LOOP_GET_STATUS, &loopinfo); + ret_ioctl = ioctl(loop_fd, LOOP_GET_STATUS64, &loopinfo); close(loop_fd); if (ret_ioctl == 0) { - strncpy(loop_file, loopinfo.lo_name, max_len); + strncpy(loop_file, loopinfo.lo_file_name, max_len); if (max_len > 0) loop_file[max_len-1] = 0; } else