Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3e3c9c6f
Commit
3e3c9c6f
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch ide-scsi
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4e999af9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
drivers/scsi/ide-scsi.c
drivers/scsi/ide-scsi.c
+9
-15
No files found.
drivers/scsi/ide-scsi.c
View file @
3e3c9c6f
...
@@ -452,40 +452,34 @@ static ide_driver_t idescsi_driver = {
...
@@ -452,40 +452,34 @@ static ide_driver_t idescsi_driver = {
#endif
#endif
};
};
static
int
idescsi_ide_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
idescsi_ide_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
{
struct
gendisk
*
disk
=
inode
->
i_bdev
->
bd_disk
;
struct
ide_scsi_obj
*
scsi
=
ide_scsi_get
(
bdev
->
bd_disk
);
struct
ide_scsi_obj
*
scsi
;
if
(
!
(
scsi
=
ide_scsi_get
(
disk
))
)
if
(
!
scsi
)
return
-
ENXIO
;
return
-
ENXIO
;
return
0
;
return
0
;
}
}
static
int
idescsi_ide_release
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
idescsi_ide_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
{
struct
gendisk
*
disk
=
inode
->
i_bdev
->
bd_disk
;
ide_scsi_put
(
ide_scsi_g
(
disk
));
struct
ide_scsi_obj
*
scsi
=
ide_scsi_g
(
disk
);
ide_scsi_put
(
scsi
);
return
0
;
return
0
;
}
}
static
int
idescsi_ide_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
idescsi_ide_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
struct
block_device
*
bdev
=
inode
->
i_bdev
;
struct
ide_scsi_obj
*
scsi
=
ide_scsi_g
(
bdev
->
bd_disk
);
struct
ide_scsi_obj
*
scsi
=
ide_scsi_g
(
bdev
->
bd_disk
);
return
generic_ide_ioctl
(
scsi
->
drive
,
bdev
,
cmd
,
arg
);
return
generic_ide_ioctl
(
scsi
->
drive
,
bdev
,
cmd
,
arg
);
}
}
static
struct
block_device_operations
idescsi_ops
=
{
static
struct
block_device_operations
idescsi_ops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
__
open
=
idescsi_ide_open
,
.
open
=
idescsi_ide_open
,
.
__
release
=
idescsi_ide_release
,
.
release
=
idescsi_ide_release
,
.
__ioctl
=
idescsi_ide_ioctl
,
.
locked_ioctl
=
idescsi_ide_ioctl
,
};
};
static
int
idescsi_slave_configure
(
struct
scsi_device
*
sdp
)
static
int
idescsi_slave_configure
(
struct
scsi_device
*
sdp
)
...
...
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