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
55d47414
Commit
55d47414
authored
Feb 20, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Disable sysfs files on older kernels
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
2e1a992e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
fs/btrfs/sysfs.c
fs/btrfs/sysfs.c
+34
-0
No files found.
fs/btrfs/sysfs.c
View file @
55d47414
...
...
@@ -28,6 +28,7 @@
#include "disk-io.h"
#include "transaction.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
static
ssize_t
root_blocks_used_show
(
struct
btrfs_root
*
root
,
char
*
buf
)
{
return
snprintf
(
buf
,
PAGE_SIZE
,
"%llu
\n
"
,
...
...
@@ -265,3 +266,36 @@ void btrfs_exit_sysfs()
{
kset_unregister
(
btrfs_kset
);
}
#else
int
btrfs_sysfs_add_super
(
struct
btrfs_fs_info
*
fs
)
{
return
0
;
}
int
btrfs_sysfs_add_root
(
struct
btrfs_root
*
root
)
{
return
0
;
}
void
btrfs_sysfs_del_root
(
struct
btrfs_root
*
root
)
{
return
;
}
void
btrfs_sysfs_del_super
(
struct
btrfs_fs_info
*
fs
)
{
return
;
}
int
btrfs_init_sysfs
()
{
return
0
;
}
void
btrfs_exit_sysfs
()
{
return
;
}
#endif
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