ntfs_readdir(): fix reading dirs over 600,000 files (GeorgeK, Szaka)

This commit is contained in:
szaka 2007-11-15 07:21:43 +00:00
parent d6f73c80e5
commit c38e349117

View File

@ -883,6 +883,7 @@ find_next_index_buffer:
if (bmp_buf_pos >> 3 < bmp_buf_size)
continue;
/* Read next chunk from the index bitmap. */
bmp_buf_pos = 0;
if ((bmp_pos >> 3) + bmp_buf_size > bmp_na->data_size)
bmp_buf_size = bmp_na->data_size - (bmp_pos >> 3);
br = ntfs_attr_pread(bmp_na, bmp_pos >> 3, bmp_buf_size, bmp);