ntfscomp.c revision 2
2N/A/* ntfscomp.c - compression support for the NTFS filesystem */
2N/A * along with this program. If not, see <http://www.gnu.org/licenses/>.
2N/Astatic grub_err_t
2N/A if (grub_disk_read
2N/A return grub_errno;
2N/Astatic grub_err_t
2N/A return grub_errno;
2N/Astatic grub_err_t
2N/A return grub_errno;
2N/Astatic grub_err_t
2N/A return grub_errno;
2N/A return grub_errno;
cnt--;
if (cnt <= 0)
return grub_errno;
if (!copied)
dshift--;
for (i = 0; i < len; i++)
copied++;
unsigned char ch = 0;
return grub_errno;
cnt--;
bits--;
while (cnt > 0)
if (n > cnt)
n = cnt;
if ((dest) && (n))
dest += n;
cnt -= n;
return grub_errno;
static grub_err_t
while (num)
int nn;
return grub_errno;
return grub_errno;
if (buf)
while (nn)
return grub_errno;
if (buf)
nn--;
int tt;
tt =
if (buf)
if (grub_disk_read
return grub_errno;
if (nn)
if (buf)
if (grub_disk_read
return grub_errno;
static grub_err_t
ret = 0;
goto quit;
grub_uint32_t t, n, o;
goto quit;
n = GRUB_NTFS_COM_LEN - o;
if (n > len)
n = len;
if (n == len)
goto quit;
dest += n;
len -= n;
goto quit;
if (len)
goto quit;
quit:
return ret;