Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 101766 Details for
Bug 154924
sys-fs/evms-2.5.5-r3 release patches necessary for kernels >= 2.6.17
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
$PORTDIR/sys-fs/evms/files/2.5.5/ntfs_unmkfs.patch
ntfs_unmkfs.patch (text/plain), 1.57 KB, created by
Brad Allen
on 2006-11-12 12:31:07 UTC
(
hide
)
Description:
$PORTDIR/sys-fs/evms/files/2.5.5/ntfs_unmkfs.patch
Filename:
MIME Type:
Creator:
Brad Allen
Created:
2006-11-12 12:31:07 UTC
Size:
1.57 KB
patch
obsolete
>This patch fixes a bug in the NTFS unmkfs. The offsets for the superblocks >were calculated incorrectly by using the filesystem size rather than using >the volume size. The result is that sometimes the superblocks didn't get >wiped out, leaving the NTFS file system still on the volume. > >--- evms-2.5.5/plugins/ntfs/utils.c 2006-02-24 10:36:54.000000000 -0600 >+++ evms-2.5.5-fix/plugins/ntfs/utils.c 2006-05-04 16:47:26.243120000 -0500 >@@ -313,7 +313,6 @@ > int clear_ntfs_boot_sectors(logical_volume_t * ev) > { > int rc = 0; >- private_data_t * pd = (private_data_t *) ev->private_data; > int fd; > void * block; > int32_t bytes_written; >@@ -346,7 +345,7 @@ > } > > /* Wipe out the NT4+ backup boot sector. */ >- bytes_written = EngFncs->write_volume(ev, fd, block, NTFS_BLOCK_SIZE, (pd->fs_size << EVMS_VSECTOR_SIZE_SHIFT) - NTFS_BLOCK_SIZE); >+ bytes_written = EngFncs->write_volume(ev, fd, block, NTFS_BLOCK_SIZE, (ev->vol_size << EVMS_VSECTOR_SIZE_SHIFT) - NTFS_BLOCK_SIZE); > if (bytes_written != NTFS_BLOCK_SIZE) { > LOG_WARNING("Failed to clear the primary boot sector on volume %s. " > "Only %d bytes were written.\n", >@@ -355,7 +354,7 @@ > } > > /* Wipe out the NT3.51- backup boot sector. */ >- bytes_written = EngFncs->write_volume(ev, fd, block, NTFS_BLOCK_SIZE, (pd->fs_size << (EVMS_VSECTOR_SIZE_SHIFT - 1))); >+ bytes_written = EngFncs->write_volume(ev, fd, block, NTFS_BLOCK_SIZE, (ev->vol_size << (EVMS_VSECTOR_SIZE_SHIFT - 1))); > if (bytes_written != NTFS_BLOCK_SIZE) { > LOG_WARNING("Failed to clear the primary boot sector on volume %s. " > "Only %d bytes were written.\n",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 154924
:
101765
| 101766 |
101767
|
101768
|
101769
|
101770
|
101773
|
101775