Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
325cd4ba
Commit
325cd4ba
authored
Sep 05, 2008
by
Zheng Yan
Committed by
Chris Mason
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: properly set blocksize when adding new device.
--- Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
6527cdbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
fs/btrfs/volumes.c
fs/btrfs/volumes.c
+2
-0
No files found.
fs/btrfs/volumes.c
View file @
325cd4ba
...
@@ -1079,6 +1079,8 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path)
...
@@ -1079,6 +1079,8 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path)
if
(
ret
)
if
(
ret
)
goto
out_close_bdev
;
goto
out_close_bdev
;
set_blocksize
(
device
->
bdev
,
4096
);
total_bytes
=
btrfs_super_total_bytes
(
&
root
->
fs_info
->
super_copy
);
total_bytes
=
btrfs_super_total_bytes
(
&
root
->
fs_info
->
super_copy
);
btrfs_set_super_total_bytes
(
&
root
->
fs_info
->
super_copy
,
btrfs_set_super_total_bytes
(
&
root
->
fs_info
->
super_copy
,
total_bytes
+
device
->
total_bytes
);
total_bytes
+
device
->
total_bytes
);
...
...
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