Fixed the location of the backup boot sector

edge.strict_endians
Jean-Pierre André 2011-02-16 12:20:46 +01:00
parent f68259e0c2
commit 8034e9be25
1 changed files with 0 additions and 2 deletions

View File

@ -4222,8 +4222,6 @@ 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");