fix for large sector sizes

edge.strict_endians
aia21 2006-10-20 19:55:50 +00:00
parent 3d56b14bca
commit ff289408c5
1 changed files with 2 additions and 0 deletions

View File

@ -4245,6 +4245,8 @@ static int create_backup_boot_sector(u8 *buff)
size = 512;
if (size < opts.sector_size)
size = opts.sector_size;
if (size < opts.cluster_size)
size = opts.cluster_size;
if (g_vol->dev->d_ops->seek(g_vol->dev, (opts.num_sectors + 1) *
opts.sector_size - size, SEEK_SET) == (off_t)-1) {
ntfs_log_perror("Seek failed");