Update changelog, fox more mkntfs bugs (thanks Timur!) and update build system
to SuSE 9.3 again.edge.strict_endians
parent
48af715f60
commit
47b52b54e3
|
@ -1,4 +1,4 @@
|
|||
xx/07/2005 - 1.10.1-WIP
|
||||
xx/07/2005 - 1.11.0-WIP - Fixes and a new utility ntfsmount, a FUSE ntfsmodule.
|
||||
|
||||
- ntfscp: fix signal hanling: handle both SIGTERM and SIGINT, print
|
||||
correct message. (Yura)
|
||||
|
@ -12,8 +12,11 @@ xx/07/2005 - 1.10.1-WIP
|
|||
having bad sectors if the new --bad-sectors option is used. (Szaka)
|
||||
- ntfsinfo: Dump $EA_INFORMATION and $EA attributes. (Yura)
|
||||
- mkntfs: Fix backup bootsector creation. Thanks to Timur Amirkhanov
|
||||
for pointing this stupidity out. (We forgot to set the size before
|
||||
doing it.) (Anton)
|
||||
for pointing these stupidities out. (We forgot to set the size
|
||||
before doing it and we wrote more bytes then there were in the buffer
|
||||
if sector size was above 8kiB and we only reserved one sector even
|
||||
when sector size was less than 512 bytes and then we wrote 512 bytes,
|
||||
i.e. beyond the end of the device.) (Anton)
|
||||
|
||||
20/06/2005 - 1.10.0 - Lots of new features, enhancements, and bug fixes.
|
||||
|
||||
|
|
|
@ -144,7 +144,6 @@ ac_ct_CXX = @ac_ct_CXX@
|
|||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -119,7 +119,6 @@ ac_ct_CXX = @ac_ct_CXX@
|
|||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
|
|
|
@ -128,7 +128,6 @@ ac_ct_CXX = @ac_ct_CXX@
|
|||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
|
|
|
@ -132,7 +132,6 @@ ac_ct_CXX = @ac_ct_CXX@
|
|||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
|
|
|
@ -194,7 +194,6 @@ ac_ct_CXX = @ac_ct_CXX@
|
|||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
|
|
|
@ -240,7 +240,6 @@ ac_ct_CXX = @ac_ct_CXX@
|
|||
ac_ct_F77 = @ac_ct_F77@
|
||||
ac_ct_RANLIB = @ac_ct_RANLIB@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
||||
all_includes = @all_includes@
|
||||
all_libraries = @all_libraries@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
|
|
|
@ -2670,6 +2670,8 @@ static void mkntfs_open_partition(void)
|
|||
*/
|
||||
static void mkntfs_override_phys_params(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* If user didn't specify the sector size, determine it now. */
|
||||
if (!opts.sector_size) {
|
||||
#ifdef BLKSSZGET
|
||||
|
@ -2706,8 +2708,15 @@ static void mkntfs_override_phys_params(void)
|
|||
}
|
||||
mkDprintf("number of sectors = %lld (0x%llx)\n", opts.nr_sectors,
|
||||
opts.nr_sectors);
|
||||
/* Reserve the last sector for the backup boot sector. */
|
||||
opts.nr_sectors--;
|
||||
/*
|
||||
* Reserve the last sector for the backup boot sector unless the
|
||||
* sector size is less than 512 bytes in which case reserve 512 bytes
|
||||
* worth of secstors.
|
||||
*/
|
||||
i = 1;
|
||||
if (opts.sector_size < 512)
|
||||
i = 512 / opts.sector_size;
|
||||
opts.nr_sectors -= i;
|
||||
/* If user didn't specify the partition start sector, determine it. */
|
||||
if (opts.part_start_sect < 0) {
|
||||
opts.part_start_sect = ntfs_device_partition_start_sector_get(
|
||||
|
@ -3264,7 +3273,8 @@ static int create_backup_boot_sector(u8 *buff)
|
|||
Vprintf("Creating backup boot sector.\n");
|
||||
/*
|
||||
* Write the first max(512, opts.sector_size) bytes from buf to the
|
||||
* last sector.
|
||||
* last sector, but limit that to 8192 bytes of written data since that
|
||||
* is how big $Boot is (and how big our buffer is)..
|
||||
*/
|
||||
size = 512;
|
||||
if (size < opts.sector_size)
|
||||
|
@ -3272,11 +3282,11 @@ static int create_backup_boot_sector(u8 *buff)
|
|||
if (vol->dev->d_ops->seek(vol->dev, (opts.nr_sectors + 1) *
|
||||
opts.sector_size - size, SEEK_SET) == (off_t)-1)
|
||||
goto bb_err;
|
||||
|
||||
if (size > 8192)
|
||||
size = 8192;
|
||||
bw = mkntfs_write(vol->dev, buff, size);
|
||||
if (bw == size)
|
||||
return 0;
|
||||
|
||||
if (bw == -1LL)
|
||||
_s = strerror(_e);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue