Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1459151 Details for
Bug 1601146
ntfsclone fails with: ntfsclone: malloc.c:2385: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Always allocate full clusters
full-clusters.patch (text/plain), 2.15 KB, created by
Jean-Pierre André
on 2018-07-16 12:25:26 UTC
(
hide
)
Description:
Always allocate full clusters
Filename:
MIME Type:
Creator:
Jean-Pierre André
Created:
2018-07-16 12:25:26 UTC
Size:
2.15 KB
patch
obsolete
>--- ntfsprogs/ntfsclone.c.ref 2018-05-16 18:46:47.114964000 +0200 >+++ ntfsprogs/ntfsclone.c 2018-07-16 14:03:20.273809100 +0200 >@@ -776,6 +776,10 @@ > > /* possible partial cluster holding the backup boot sector */ > backup_bootsector = (lcn + 1)*csize >= full_device_size; >+ buff = (char*)ntfs_malloc(csize); >+ if (!buff) >+ err_exit("Not enough memory"); >+ > if (backup_bootsector) { > csize = full_device_size - lcn*csize; > if (csize < 0) { >@@ -783,10 +787,6 @@ > } > } > >- buff = (char*)ntfs_malloc(csize); >- if (!buff) >- err_exit("Not enough memory"); >- > // need reading when not about to write ? > if (read_all(fd, buff, csize) == -1) { > >@@ -1507,6 +1507,7 @@ > s64 mft_no; > u32 mft_record_size; > u32 csize; >+ u32 buff_size; > u32 bytes_per_sector; > u32 records_per_set; > u32 clusters_per_set; >@@ -1524,15 +1525,18 @@ > /* > * Depending on the sizes, there may be several records > * per cluster, or several clusters per record. >+ * Anyway, full clusters are needed for rescuing bad ones. > */ > if (csize >= mft_record_size) { > records_per_set = csize/mft_record_size; > clusters_per_set = 1; >+ buff_size = csize; > } else { > clusters_per_set = mft_record_size/csize; > records_per_set = 1; >+ buff_size = mft_record_size; > } >- buff = (char*)ntfs_malloc(mft_record_size); >+ buff = (char*)ntfs_malloc(buff_size); > if (!buff) > err_exit("Not enough memory"); > >@@ -1585,6 +1589,7 @@ > void *fd; > u32 indx_record_size; > u32 csize; >+ u32 buff_size; > u32 bytes_per_sector; > u32 records_per_set; > u32 clusters_per_set; >@@ -1601,16 +1606,19 @@ > /* > * Depending on the sizes, there may be several records > * per cluster, or several clusters per record. >+ * Anyway, full clusters are needed for rescuing bad ones. > */ > indx_record_size = image->ni->vol->indx_record_size; > if (csize >= indx_record_size) { > records_per_set = csize/indx_record_size; > clusters_per_set = 1; >+ buff_size = csize; > } else { > clusters_per_set = indx_record_size/csize; > records_per_set = 1; >+ buff_size = indx_record_size; > } >- buff = (char*)ntfs_malloc(indx_record_size); >+ buff = (char*)ntfs_malloc(buff_size); > if (!buff) > err_exit("Not enough memory"); >
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 1601146
:
1459065
| 1459151