Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
f5bc27c7
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f5bc27c7
编写于
2月 26, 2016
作者:
D
David Sterba
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev/control-ioctl' into for-chris-4.6
上级
fa695b01
d5131b65
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
3 deletion
+6
-3
fs/btrfs/ctree.h
fs/btrfs/ctree.h
+1
-0
fs/btrfs/ioctl.c
fs/btrfs/ioctl.c
+2
-3
fs/btrfs/super.c
fs/btrfs/super.c
+3
-0
未找到文件。
fs/btrfs/ctree.h
浏览文件 @
f5bc27c7
...
@@ -4130,6 +4130,7 @@ void btrfs_test_inode_set_ops(struct inode *inode);
...
@@ -4130,6 +4130,7 @@ void btrfs_test_inode_set_ops(struct inode *inode);
/* ioctl.c */
/* ioctl.c */
long
btrfs_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
);
long
btrfs_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
);
int
btrfs_ioctl_get_supported_features
(
void
__user
*
arg
);
void
btrfs_update_iflags
(
struct
inode
*
inode
);
void
btrfs_update_iflags
(
struct
inode
*
inode
);
void
btrfs_inherit_iflags
(
struct
inode
*
inode
,
struct
inode
*
dir
);
void
btrfs_inherit_iflags
(
struct
inode
*
inode
,
struct
inode
*
dir
);
int
btrfs_is_empty_uuid
(
u8
*
uuid
);
int
btrfs_is_empty_uuid
(
u8
*
uuid
);
...
...
fs/btrfs/ioctl.c
浏览文件 @
f5bc27c7
...
@@ -5257,8 +5257,7 @@ static int btrfs_ioctl_set_fslabel(struct file *file, void __user *arg)
...
@@ -5257,8 +5257,7 @@ static int btrfs_ioctl_set_fslabel(struct file *file, void __user *arg)
.compat_ro_flags = BTRFS_FEATURE_COMPAT_RO_##suffix, \
.compat_ro_flags = BTRFS_FEATURE_COMPAT_RO_##suffix, \
.incompat_flags = BTRFS_FEATURE_INCOMPAT_##suffix }
.incompat_flags = BTRFS_FEATURE_INCOMPAT_##suffix }
static
int
btrfs_ioctl_get_supported_features
(
struct
file
*
file
,
int
btrfs_ioctl_get_supported_features
(
void
__user
*
arg
)
void
__user
*
arg
)
{
{
static
const
struct
btrfs_ioctl_feature_flags
features
[
3
]
=
{
static
const
struct
btrfs_ioctl_feature_flags
features
[
3
]
=
{
INIT_FEATURE_FLAGS
(
SUPP
),
INIT_FEATURE_FLAGS
(
SUPP
),
...
@@ -5537,7 +5536,7 @@ long btrfs_ioctl(struct file *file, unsigned int
...
@@ -5537,7 +5536,7 @@ long btrfs_ioctl(struct file *file, unsigned int
case
BTRFS_IOC_SET_FSLABEL
:
case
BTRFS_IOC_SET_FSLABEL
:
return
btrfs_ioctl_set_fslabel
(
file
,
argp
);
return
btrfs_ioctl_set_fslabel
(
file
,
argp
);
case
BTRFS_IOC_GET_SUPPORTED_FEATURES
:
case
BTRFS_IOC_GET_SUPPORTED_FEATURES
:
return
btrfs_ioctl_get_supported_features
(
file
,
argp
);
return
btrfs_ioctl_get_supported_features
(
argp
);
case
BTRFS_IOC_GET_FEATURES
:
case
BTRFS_IOC_GET_FEATURES
:
return
btrfs_ioctl_get_features
(
file
,
argp
);
return
btrfs_ioctl_get_features
(
file
,
argp
);
case
BTRFS_IOC_SET_FEATURES
:
case
BTRFS_IOC_SET_FEATURES
:
...
...
fs/btrfs/super.c
浏览文件 @
f5bc27c7
...
@@ -2190,6 +2190,9 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
...
@@ -2190,6 +2190,9 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
break
;
break
;
ret
=
!
(
fs_devices
->
num_devices
==
fs_devices
->
total_devices
);
ret
=
!
(
fs_devices
->
num_devices
==
fs_devices
->
total_devices
);
break
;
break
;
case
BTRFS_IOC_GET_SUPPORTED_FEATURES
:
ret
=
btrfs_ioctl_get_supported_features
((
void
__user
*
)
arg
);
break
;
}
}
kfree
(
vol
);
kfree
(
vol
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录