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

Ensure BLK_OPEN_EXCL is defined in HAVE_BLKDEV_GET_BY_PATH_4ARG case #15688

Closed
wants to merge 1 commit into from

Conversation

asdil12
Copy link

@asdil12 asdil12 commented Dec 19, 2023

On some systems we already have blkdev_get_by_path() with 4 args
but still the old FMODE_EXCL and not BLK_OPEN_EXCL defined.

See #15099 (comment)

@asdil12 asdil12 mentioned this pull request Dec 19, 2023
13 tasks
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Dec 19, 2023
Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change looks good to me. Can you just address the two style warning.

  1. Add your "Signed-off-by" to the commit and force up the the PR. git commit --amend -s.

  2. A trivial cstyle warning.

make: *** [Makefile:14230: commitcheck] Error 1
make: *** Waiting for unfinished jobs....
./module/os/linux/zfs/vdev_disk.c: 228: #define followed by space instead of tab

On some systems we already have blkdev_get_by_path() with 4 args
but still the old FMODE_EXCL and not BLK_OPEN_EXCL defined.

Signed-off-by: Dominik Heidler <dheidler@suse.de>
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Dec 20, 2023
@behlendorf
Copy link
Contributor

@asdil12 after taking a second look at this I think we should take a slightly different approach, see #15692. Thanks for getting the ball rolling on this and opening the PR.

@behlendorf behlendorf removed the Status: Accepted Ready to integrate (reviewed, tested) label Dec 20, 2023
@behlendorf
Copy link
Contributor

Replaced by #15692.

@behlendorf behlendorf closed this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants