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
Kirill Smelkov
linux
Commits
1cdcc6e3
Commit
1cdcc6e3
authored
May 28, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Split out disk_groups_format.h
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
4c5eef0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
18 deletions
+22
-18
fs/bcachefs/bcachefs_format.h
fs/bcachefs/bcachefs_format.h
+1
-18
fs/bcachefs/disk_groups_format.h
fs/bcachefs/disk_groups_format.h
+21
-0
No files found.
fs/bcachefs/bcachefs_format.h
View file @
1cdcc6e3
...
@@ -507,6 +507,7 @@ struct bch_sb_field {
...
@@ -507,6 +507,7 @@ struct bch_sb_field {
#include "ec_format.h"
#include "ec_format.h"
#include "inode_format.h"
#include "inode_format.h"
#include "dirent_format.h"
#include "dirent_format.h"
#include "disk_groups_format.h"
#include "xattr_format.h"
#include "xattr_format.h"
#include "quota_format.h"
#include "quota_format.h"
#include "logged_ops_format.h"
#include "logged_ops_format.h"
...
@@ -665,24 +666,6 @@ struct bch_sb_field_replicas {
...
@@ -665,24 +666,6 @@ struct bch_sb_field_replicas {
struct
bch_replicas_entry_v1
entries
[];
struct
bch_replicas_entry_v1
entries
[];
}
__packed
__aligned
(
8
);
}
__packed
__aligned
(
8
);
/* BCH_SB_FIELD_disk_groups: */
#define BCH_SB_LABEL_SIZE 32
struct
bch_disk_group
{
__u8
label
[
BCH_SB_LABEL_SIZE
];
__le64
flags
[
2
];
}
__packed
__aligned
(
8
);
LE64_BITMASK
(
BCH_GROUP_DELETED
,
struct
bch_disk_group
,
flags
[
0
],
0
,
1
)
LE64_BITMASK
(
BCH_GROUP_DATA_ALLOWED
,
struct
bch_disk_group
,
flags
[
0
],
1
,
6
)
LE64_BITMASK
(
BCH_GROUP_PARENT
,
struct
bch_disk_group
,
flags
[
0
],
6
,
24
)
struct
bch_sb_field_disk_groups
{
struct
bch_sb_field
field
;
struct
bch_disk_group
entries
[];
}
__packed
__aligned
(
8
);
/*
/*
* On clean shutdown, store btree roots and current journal sequence number in
* On clean shutdown, store btree roots and current journal sequence number in
* the superblock:
* the superblock:
...
...
fs/bcachefs/disk_groups_format.h
0 → 100644
View file @
1cdcc6e3
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHEFS_DISK_GROUPS_FORMAT_H
#define _BCACHEFS_DISK_GROUPS_FORMAT_H
#define BCH_SB_LABEL_SIZE 32
struct
bch_disk_group
{
__u8
label
[
BCH_SB_LABEL_SIZE
];
__le64
flags
[
2
];
}
__packed
__aligned
(
8
);
LE64_BITMASK
(
BCH_GROUP_DELETED
,
struct
bch_disk_group
,
flags
[
0
],
0
,
1
)
LE64_BITMASK
(
BCH_GROUP_DATA_ALLOWED
,
struct
bch_disk_group
,
flags
[
0
],
1
,
6
)
LE64_BITMASK
(
BCH_GROUP_PARENT
,
struct
bch_disk_group
,
flags
[
0
],
6
,
24
)
struct
bch_sb_field_disk_groups
{
struct
bch_sb_field
field
;
struct
bch_disk_group
entries
[];
}
__packed
__aligned
(
8
);
#endif
/* _BCACHEFS_DISK_GROUPS_FORMAT_H */
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