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
a0eb62a0
Commit
a0eb62a0
authored
Aug 29, 2007
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch pktcdvd to blkdev_driver_ioctl()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
bbc1cc97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
drivers/block/pktcdvd.c
drivers/block/pktcdvd.c
+10
-10
No files found.
drivers/block/pktcdvd.c
View file @
a0eb62a0
...
@@ -2803,6 +2803,14 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u
...
@@ -2803,6 +2803,14 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u
VPRINTK
(
"pkt_ioctl: cmd %x, dev %d:%d
\n
"
,
cmd
,
imajor
(
inode
),
iminor
(
inode
));
VPRINTK
(
"pkt_ioctl: cmd %x, dev %d:%d
\n
"
,
cmd
,
imajor
(
inode
),
iminor
(
inode
));
switch
(
cmd
)
{
switch
(
cmd
)
{
case
CDROMEJECT
:
/*
* The door gets locked when the device is opened, so we
* have to unlock it or else the eject command fails.
*/
if
(
pd
->
refcnt
==
1
)
pkt_lock_door
(
pd
,
0
);
/* fallthru */
/*
/*
* forward selected CDROM ioctls to CD-ROM, for UDF
* forward selected CDROM ioctls to CD-ROM, for UDF
*/
*/
...
@@ -2811,16 +2819,8 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u
...
@@ -2811,16 +2819,8 @@ static int pkt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u
case
CDROM_LAST_WRITTEN
:
case
CDROM_LAST_WRITTEN
:
case
CDROM_SEND_PACKET
:
case
CDROM_SEND_PACKET
:
case
SCSI_IOCTL_SEND_COMMAND
:
case
SCSI_IOCTL_SEND_COMMAND
:
return
blkdev_ioctl
(
pd
->
bdev
->
bd_inode
,
file
,
cmd
,
arg
);
return
blkdev_driver_ioctl
(
pd
->
bdev
->
bd_inode
,
pd
->
bdev
->
bd_disk
,
file
,
cmd
,
arg
);
case
CDROMEJECT
:
/*
* The door gets locked when the device is opened, so we
* have to unlock it or else the eject command fails.
*/
if
(
pd
->
refcnt
==
1
)
pkt_lock_door
(
pd
,
0
);
return
blkdev_ioctl
(
pd
->
bdev
->
bd_inode
,
file
,
cmd
,
arg
);
default:
default:
VPRINTK
(
DRIVER_NAME
": Unknown ioctl for %s (%x)
\n
"
,
pd
->
name
,
cmd
);
VPRINTK
(
DRIVER_NAME
": Unknown ioctl for %s (%x)
\n
"
,
pd
->
name
,
cmd
);
...
...
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