Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
67b1dfe7
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
67b1dfe7
编写于
3月 23, 2006
作者:
A
Anton Altaparmakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NTFS: Fix an (innocent) off-by-one error in the runlist code.
Signed-off-by:
N
Anton Altaparmakov
<
aia21@cantab.net
>
上级
b4d8d1a9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
7 deletion
+17
-7
fs/ntfs/ChangeLog
fs/ntfs/ChangeLog
+6
-0
fs/ntfs/Makefile
fs/ntfs/Makefile
+1
-1
fs/ntfs/namei.c
fs/ntfs/namei.c
+1
-1
fs/ntfs/runlist.c
fs/ntfs/runlist.c
+8
-4
fs/ntfs/super.c
fs/ntfs/super.c
+1
-1
未找到文件。
fs/ntfs/ChangeLog
浏览文件 @
67b1dfe7
...
...
@@ -19,6 +19,12 @@ ToDo/Notes:
- Enable the code for setting the NT4 compatibility flag when we start
making NTFS 1.2 specific modifications.
2.1.27 - Various bug fixes.
- Fix two compiler warnings on Alpha. Thanks to Andrew Morton for
reporting them.
- Fix an (innocent) off-by-one error in the runlist code.
2.1.26 - Minor bug fixes and updates.
- Fix a potential overflow in file.c where a cast to s64 was missing in
...
...
fs/ntfs/Makefile
浏览文件 @
67b1dfe7
...
...
@@ -6,7 +6,7 @@ ntfs-objs := aops.o attrib.o collate.o compress.o debug.o dir.o file.o \
index.o inode.o mft.o mst.o namei.o runlist.o super.o sysctl.o
\
unistr.o upcase.o
EXTRA_CFLAGS
=
-DNTFS_VERSION
=
\"
2.1.2
6
\"
EXTRA_CFLAGS
=
-DNTFS_VERSION
=
\"
2.1.2
7
\"
ifeq
($(CONFIG_NTFS_DEBUG),y)
EXTRA_CFLAGS
+=
-DDEBUG
...
...
fs/ntfs/namei.c
浏览文件 @
67b1dfe7
...
...
@@ -2,7 +2,7 @@
* namei.c - NTFS kernel directory inode operations. Part of the Linux-NTFS
* project.
*
* Copyright (c) 2001-200
4
Anton Altaparmakov
* Copyright (c) 2001-200
6
Anton Altaparmakov
*
* This program/include file is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
...
...
fs/ntfs/runlist.c
浏览文件 @
67b1dfe7
...
...
@@ -381,6 +381,7 @@ static inline runlist_element *ntfs_rl_insert(runlist_element *dst,
static
inline
runlist_element
*
ntfs_rl_replace
(
runlist_element
*
dst
,
int
dsize
,
runlist_element
*
src
,
int
ssize
,
int
loc
)
{
signed
delta
;
BOOL
left
=
FALSE
;
/* Left end of @src needs merging. */
BOOL
right
=
FALSE
;
/* Right end of @src needs merging. */
int
tail
;
/* Start of tail of @dst. */
...
...
@@ -396,11 +397,14 @@ static inline runlist_element *ntfs_rl_replace(runlist_element *dst,
left
=
ntfs_are_rl_mergeable
(
dst
+
loc
-
1
,
src
);
/*
* Allocate some space. We will need less if the left, right, or both
* ends get merged.
* ends get merged.
The -1 accounts for the run being replaced.
*/
dst
=
ntfs_rl_realloc
(
dst
,
dsize
,
dsize
+
ssize
-
left
-
right
);
if
(
IS_ERR
(
dst
))
return
dst
;
delta
=
ssize
-
1
-
left
-
right
;
if
(
delta
>
0
)
{
dst
=
ntfs_rl_realloc
(
dst
,
dsize
,
dsize
+
delta
);
if
(
IS_ERR
(
dst
))
return
dst
;
}
/*
* We are guaranteed to succeed from here so can start modifying the
* original runlists.
...
...
fs/ntfs/super.c
浏览文件 @
67b1dfe7
...
...
@@ -3234,7 +3234,7 @@ static void __exit exit_ntfs_fs(void)
}
MODULE_AUTHOR
(
"Anton Altaparmakov <aia21@cantab.net>"
);
MODULE_DESCRIPTION
(
"NTFS 1.2/3.x driver - Copyright (c) 2001-200
5
Anton Altaparmakov"
);
MODULE_DESCRIPTION
(
"NTFS 1.2/3.x driver - Copyright (c) 2001-200
6
Anton Altaparmakov"
);
MODULE_VERSION
(
NTFS_VERSION
);
MODULE_LICENSE
(
"GPL"
);
#ifdef DEBUG
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录