Skip to content
This repository

CA-85680: fixed passing bdev read only flag to blktap2 kernel module #18

Merged
merged 1 commit into from over 1 year ago

2 participants

Thanos Andrei Lifchits
Thanos
Collaborator

No description provided.

Andrei Lifchits andreil merged commit 6fc1f96 into from August 09, 2012
Andrei Lifchits andreil closed this August 09, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jul 12, 2012
Thanos fixed passing bdev read only flag to blktap2 kernel module cc0fa70
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  drivers/tapdisk-blktap.c
2  drivers/tapdisk-blktap.c
@@ -439,7 +439,7 @@ tapdisk_blktap_create_device(td_blktap_t *tap,
439 439
 	memset(&bdi, 0, sizeof(bdi));
440 440
 
441 441
 	flags  = 0;
442  
-	flags |= rdonly & TD_OPEN_RDONLY ? BLKTAP_DEVICE_RO : 0;
  442
+	flags |= rdonly ? BLKTAP_DEVICE_RO : 0;
443 443
 
444 444
 	bdi.capacity             = info->size;
445 445
 	bdi.sector_size          = info->sector_size;
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.