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
a4600f81
Commit
a4600f81
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch ide-tape
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
b2f21e05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
drivers/ide/ide-tape.c
drivers/ide/ide-tape.c
+7
-12
No files found.
drivers/ide/ide-tape.c
View file @
a4600f81
...
...
@@ -2340,32 +2340,27 @@ static const struct file_operations idetape_fops = {
.
release
=
idetape_chrdev_release
,
};
static
int
idetape_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
idetape_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
struct
gendisk
*
disk
=
inode
->
i_bdev
->
bd_disk
;
struct
ide_tape_obj
*
tape
;
struct
ide_tape_obj
*
tape
=
ide_tape_get
(
bdev
->
bd_disk
);
tape
=
ide_tape_get
(
disk
);
if
(
!
tape
)
return
-
ENXIO
;
return
0
;
}
static
int
idetape_release
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
idetape_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
struct
gendisk
*
disk
=
inode
->
i_bdev
->
bd_disk
;
struct
ide_tape_obj
*
tape
=
ide_drv_g
(
disk
,
ide_tape_obj
);
ide_tape_put
(
tape
);
return
0
;
}
static
int
idetape_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
idetape_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
block_device
*
bdev
=
inode
->
i_bdev
;
struct
ide_tape_obj
*
tape
=
ide_drv_g
(
bdev
->
bd_disk
,
ide_tape_obj
);
ide_drive_t
*
drive
=
tape
->
drive
;
int
err
=
generic_ide_ioctl
(
drive
,
bdev
,
cmd
,
arg
);
...
...
@@ -2376,9 +2371,9 @@ static int idetape_ioctl(struct inode *inode, struct file *file,
static
struct
block_device_operations
idetape_block_ops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
idetape_open
,
.
__
release
=
idetape_release
,
.
__ioctl
=
idetape_ioctl
,
.
open
=
idetape_open
,
.
release
=
idetape_release
,
.
locked_ioctl
=
idetape_ioctl
,
};
static
int
ide_tape_probe
(
ide_drive_t
*
drive
)
...
...
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