mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
a few typos
This commit is contained in:
parent
83b9eddfc9
commit
b2606af8ab
@ -2130,7 +2130,7 @@ not_found:
|
||||
* If @type is AT_END, seek to the end of the base mft record ignoring the
|
||||
* attribute list completely and return -1 with errno set to ENOENT. AT_END is
|
||||
* not a valid attribute, its length is zero for example, thus it is safer to
|
||||
* return error instead of success in this case. It should never ne needed to
|
||||
* return error instead of success in this case. It should never be needed to
|
||||
* do this, but we implement the functionality because it allows for simpler
|
||||
* code inside ntfs_external_attr_find().
|
||||
*
|
||||
@ -3000,7 +3000,7 @@ int ntfs_attr_add(ntfs_inode *ni, ATTR_TYPES type,
|
||||
/* Attribute can't be resident. */
|
||||
is_resident = FALSE;
|
||||
}
|
||||
/* Calculate atribute record size. */
|
||||
/* Calculate attribute record size. */
|
||||
if (is_resident)
|
||||
attr_rec_size = offsetof(ATTR_RECORD, resident_end) +
|
||||
((name_len * sizeof(ntfschar) + 7) & ~7) +
|
||||
|
@ -156,7 +156,7 @@ static ntfs_collate_func_t ntfs_do_collate0x1[4] = {
|
||||
* @data2_len: length in bytes of @data2
|
||||
*
|
||||
* Collate the two data items @data1 and @data2 using the collation rule @cr
|
||||
* and return -1, 0, ir 1 if @data1 is found, respectively, to collate before,
|
||||
* and return -1, 0, or 1 if @data1 is found, respectively, to collate before,
|
||||
* to match, or to collate after @data2.
|
||||
*
|
||||
* For speed we use the collation rule @cr as an index into two tables of
|
||||
|
@ -1216,7 +1216,7 @@ err_out:
|
||||
ntfs_log_trace("Failed.\n");
|
||||
if (ntfs_mft_record_free(ni->vol, ni))
|
||||
ntfs_log_error("Failed to free MFT record. "
|
||||
"Leaving inconsist metadata. Run chkdsk.");
|
||||
"Leaving inconsistent metadata. Run chkdsk.");
|
||||
free(fn);
|
||||
free(si);
|
||||
errno = err;
|
||||
@ -1386,20 +1386,20 @@ search:
|
||||
}
|
||||
if (errno != ENOENT) {
|
||||
err = errno;
|
||||
ntfs_log_error("Atribute enumeration failed. "
|
||||
"Probably leaving inconsist metadata.");
|
||||
ntfs_log_error("Attribute enumeration failed. "
|
||||
"Probably leaving inconsistent metadata.");
|
||||
}
|
||||
/* All extents should be attached after attribute walk. */
|
||||
while (ni->nr_extents)
|
||||
if (ntfs_mft_record_free(ni->vol, *(ni->extent_nis))) {
|
||||
err = errno;
|
||||
ntfs_log_error("Failed to free extent MFT record. "
|
||||
"Leaving inconsist metadata.");
|
||||
"Leaving inconsistent metadata.");
|
||||
}
|
||||
if (ntfs_mft_record_free(ni->vol, ni)) {
|
||||
err = errno;
|
||||
ntfs_log_error("Failed to free base MFT record. "
|
||||
"Leaving inconsist metadata.");
|
||||
"Leaving inconsistent metadata.");
|
||||
}
|
||||
ni = NULL;
|
||||
out:
|
||||
@ -1505,7 +1505,7 @@ int ntfs_link(ntfs_inode *ni, ntfs_inode *dir_ni, ntfschar *name, u8 name_len)
|
||||
ntfs_log_trace("Done.\n");
|
||||
return 0;
|
||||
rollback_failed:
|
||||
ntfs_log_error("Rollback failed. Leaving inconsist metadata.");
|
||||
ntfs_log_error("Rollback failed. Leaving inconsistent metadata.");
|
||||
err_out:
|
||||
ntfs_log_error("Failed.\n");
|
||||
free(fn);
|
||||
|
@ -109,7 +109,7 @@ void ntfs_index_ctx_put(ntfs_index_context *ictx)
|
||||
* ntfs_index_ctx_reinit - reinitialize an index context
|
||||
* @ictx: index context to reinitialize
|
||||
*
|
||||
* Reintialize the index context @ictx so it can be used for ntfs_index_lookup.
|
||||
* Reinitialize the index context @ictx so it can be used for ntfs_index_lookup.
|
||||
*/
|
||||
void ntfs_index_ctx_reinit(ntfs_index_context *ictx)
|
||||
{
|
||||
@ -630,14 +630,14 @@ int ntfs_index_rm(ntfs_index_context *ictx)
|
||||
if (!na) {
|
||||
err = errno;
|
||||
ntfs_log_error("Failed to open INDEX_ROOT attribute. "
|
||||
"Leaving inconsist metadata.");
|
||||
"Leaving inconsistent metadata.");
|
||||
goto err_out;
|
||||
}
|
||||
if (ntfs_attr_truncate(na, new_index_length + offsetof(
|
||||
INDEX_ROOT, index))) {
|
||||
err = errno;
|
||||
ntfs_log_error("Failed to truncate INDEX_ROOT "
|
||||
"attribute. Leaving inconsist "
|
||||
"attribute. Leaving inconsistent "
|
||||
"metadata.");
|
||||
goto err_out;
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ err_out:
|
||||
* copy of the complete multi sector transfer deprotected page. On failure,
|
||||
* *@wrp is undefined.
|
||||
*
|
||||
* Simillarly, if @lsn is not NULL, on succes *@lsn will be set to the current
|
||||
* Similarly, if @lsn is not NULL, on success *@lsn will be set to the current
|
||||
* logfile lsn according to this restart page. On failure, *@lsn is undefined.
|
||||
*
|
||||
* The following error codes are defined:
|
||||
|
@ -626,8 +626,8 @@ exit:
|
||||
* ntfs_hiberfile_open - Find and open '/hiberfil.sys'
|
||||
* @vol: An ntfs volume obtained from ntfs_mount
|
||||
*
|
||||
* Return: inode Success, hibefil.sys is valid
|
||||
* NULL hibefil.sys doesn't exist or some other error occurred
|
||||
* Return: inode Success, hiberfil.sys is valid
|
||||
* NULL hiberfil.sys doesn't exist or some other error occurred
|
||||
*/
|
||||
static ntfs_inode *ntfs_hiberfile_open(ntfs_volume *vol)
|
||||
{
|
||||
|
@ -1448,7 +1448,7 @@ static int mkntfs_attr_find(const ATTR_TYPES type, const ntfschar *name,
|
||||
* If @type is AT_END, seek to the end of the base mft record ignoring the
|
||||
* attribute list completely and return -1 with errno set to ENOENT. AT_END is
|
||||
* not a valid attribute, its length is zero for example, thus it is safer to
|
||||
* return error instead of success in this case. It should never ne needed to
|
||||
* return error instead of success in this case. It should never be needed to
|
||||
* do this, but we implement the functionality because it allows for simpler
|
||||
* code inside ntfs_external_attr_find().
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user