Skip to content
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

Add udev rule to set readahead on mapped rbd's #10841

Merged
merged 1 commit into from Sep 16, 2016
Merged

Conversation

fiskn
Copy link
Contributor

@fiskn fiskn commented Aug 24, 2016

Set to 128kb by default, so no change from current behaviour

@tchaikov tchaikov added the rbd label Aug 24, 2016
@wido
Copy link
Member

wido commented Aug 24, 2016

Thanks!

I think it should go in the udev directory right? Afterwards in debian/rules add it to the proper packages. Same goes for the RPM spec file.

EDIT: Looking at it, you could also just modify udev/50-rbd.rules

That is already packaged

@idryomov
Copy link
Contributor

Can you add a comment to the rule file, clarifying that this is just a placeholder and doesn't change the kernel default?

@fiskn
Copy link
Contributor Author

fiskn commented Aug 24, 2016

As suggest by @wido closing this PR and moving this into the already packaged /usr/lib/udev/50-rbd.rules

@fiskn fiskn closed this Aug 24, 2016
@fiskn
Copy link
Contributor Author

fiskn commented Aug 24, 2016

@wido Could you just check this new commit before I do another PR

fiskn@f4febec

@wido
Copy link
Member

wido commented Aug 24, 2016

@fiskn Thanks! However, if you check the current src directory, there is already a file.

Just check src/udev in the source.

You can squash all the commits and force push. No need for a new PR.

@fiskn
Copy link
Contributor Author

fiskn commented Aug 24, 2016

@wido, sorry I don't understand, the udev folder was in the root of the repository and I don't see anything in the src folder relating to udev.

Ok, will do that

@fiskn fiskn reopened this Aug 24, 2016
@wido
Copy link
Member

wido commented Aug 25, 2016

Looks good now! Kan you use git rebase to squash all the commits into on? Since you are only changing one file.

Then do a git force push and you should be good.

@fiskn fiskn force-pushed the master branch 3 times, most recently from 4de93b4 to 780f5a3 Compare September 2, 2016 12:28
@dillaman
Copy link

dillaman commented Sep 2, 2016

lgtm

@dillaman
Copy link

dillaman commented Sep 2, 2016

@fiskn Can you run "git commit --amend -s" to add a signed-off-by line to your commit?

@idryomov
Copy link
Contributor

idryomov commented Sep 2, 2016

I suggested the explanatory comment, but I now think the rule itself needs to be commented out so that we can actually change the kernel default some day and also to save an unnecessary step on map (rbd map CLI waits for udev).

# This is a placeholder, uncomment and edit as necessary
#KERNEL== ...

@dillaman
Copy link

@fiskn ping

@fiskn fiskn force-pushed the master branch 2 times, most recently from 31ac83a to 864e2f8 Compare September 16, 2016 10:00
@idryomov
Copy link
Contributor

@fiskn Could you please add a space between # and This and change commit title to "udev: add krbd readahead placeholder" and I'll merge?

@idryomov idryomov self-assigned this Sep 16, 2016
Signed-off-by: Nick Fisk <nick@fisk.me.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants