Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f5bc27c7
Commit
f5bc27c7
authored
Feb 26, 2016
by
David Sterba
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/control-ioctl' into for-chris-4.6
parents
fa695b01
d5131b65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+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
No files found.
fs/btrfs/ctree.h
View file @
f5bc27c7
...
...
@@ -4130,6 +4130,7 @@ void btrfs_test_inode_set_ops(struct inode *inode);
/* ioctl.c */
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_inherit_iflags
(
struct
inode
*
inode
,
struct
inode
*
dir
);
int
btrfs_is_empty_uuid
(
u8
*
uuid
);
...
...
fs/btrfs/ioctl.c
View file @
f5bc27c7
...
...
@@ -5257,8 +5257,7 @@ static int btrfs_ioctl_set_fslabel(struct file *file, void __user *arg)
.compat_ro_flags = BTRFS_FEATURE_COMPAT_RO_##suffix, \
.incompat_flags = BTRFS_FEATURE_INCOMPAT_##suffix }
static
int
btrfs_ioctl_get_supported_features
(
struct
file
*
file
,
void
__user
*
arg
)
int
btrfs_ioctl_get_supported_features
(
void
__user
*
arg
)
{
static
const
struct
btrfs_ioctl_feature_flags
features
[
3
]
=
{
INIT_FEATURE_FLAGS
(
SUPP
),
...
...
@@ -5537,7 +5536,7 @@ long btrfs_ioctl(struct file *file, unsigned int
case
BTRFS_IOC_SET_FSLABEL
:
return
btrfs_ioctl_set_fslabel
(
file
,
argp
);
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
:
return
btrfs_ioctl_get_features
(
file
,
argp
);
case
BTRFS_IOC_SET_FEATURES
:
...
...
fs/btrfs/super.c
View file @
f5bc27c7
...
...
@@ -2190,6 +2190,9 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
break
;
ret
=
!
(
fs_devices
->
num_devices
==
fs_devices
->
total_devices
);
break
;
case
BTRFS_IOC_GET_SUPPORTED_FEATURES
:
ret
=
btrfs_ioctl_get_supported_features
((
void
__user
*
)
arg
);
break
;
}
kfree
(
vol
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment