-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btrfs-progs: add --default-subvol option to mkfs.btrfs #872
Conversation
b9a702c
to
0f000fb
Compare
Fixed minor inelegance in |
|
0f000fb
to
e0dfe20
Compare
Oops, I forgot to add the long form to the list. Sorry Daan, try it now |
@adam900710 I am getting swarmed with hardlink warnings since your refactoring: https://paste.centos.org/view/a3a9b543. Any chance we can log this warning only for the first file instead of for every file? |
8063721
to
4636c58
Compare
I'll update so the warning is printed first time and after the whole directory is processed so it's not lost. |
…rdlink There's a report that newly added --rootdir print too many warnings for hardlinks, which is maybe not that uncommon. We still want to let the user know about that so print it just once and count how many were found: $ mkfs.btrfs --rootdir ... WARNING: '/tmp/btrfs-progs-mkfs-rootdir-hardlinks.7RcdfR/rootdir/inside_link' has extra hardlinks, they will be converted into new inodes WARNING: 12 hardlinks were detected in /tmp/btrfs-progs-mkfs-rootdir-hardlinks.7RcdfR/rootdir, all converted to new inodes Link: #872 (comment) Signed-off-by: David Sterba <[email protected]>
…rdlink There's a report that newly added --rootdir print too many warnings for hardlinks, which is maybe not that uncommon. We still want to let the user know about that so print it just once and count how many were found: $ mkfs.btrfs --rootdir ... WARNING: '/tmp/btrfs-progs-mkfs-rootdir-hardlinks.7RcdfR/rootdir/inside_link' has extra hardlinks, they will be converted into new inodes WARNING: 12 hardlinks were detected in /tmp/btrfs-progs-mkfs-rootdir-hardlinks.7RcdfR/rootdir, all converted to new inodes Link: #872 (comment) Signed-off-by: David Sterba <[email protected]>
Unfortunately if it's only warned once, it will mask all the other files. Another thing is, although the timezone ones are indeed hardlinks, the python ones in my system doesn't has any hardlink. I'm afraid we may need to implement hard link support sooner than later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me.
Just some small nitpicks.
b3258a3
to
a82022b
Compare
Thanks Qu. I've force-pushed a version with your changes, and rebased it against 6.10.1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
48be42f
to
082ce75
Compare
Adds a --default-subvol option to mkfs.btrfs, which works the same way as --subvol but also marks the subvolume as the default. Signed-off-by: Mark Harmstone <[email protected]>
a82022b
to
3991416
Compare
Add new option --default-subvol to mkfs.btrfs, which works the same way as --subvol but also marks the subvolume as the default. Pull-request: #872 Signed-off-by: Mark Harmstone <[email protected]> Signed-off-by: David Sterba <[email protected]>
Merged to devel, thanks. |
Thanks both |
Adds a --default-subvol option to mkfs.btrfs, which works the same way as --subvol but also marks the subvolume as the default.