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
Kirill Smelkov
linux
Commits
d502e3b2
Commit
d502e3b2
authored
Feb 05, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] OSST kdev_t fixes
MINOR --> minor MKDEV --> mk_kdev
parent
7817a6f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/scsi/osst.c
drivers/scsi/osst.c
+6
-6
No files found.
drivers/scsi/osst.c
View file @
d502e3b2
...
...
@@ -125,8 +125,8 @@ static int debugging = 1;
#define OSST_TIMEOUT (200 * HZ)
#define OSST_LONG_TIMEOUT (1800 * HZ)
#define TAPE_NR(x) (
MINOR
(x) & ~(128 | ST_MODE_MASK))
#define TAPE_MODE(x) ((
MINOR
(x) & ST_MODE_MASK) >> ST_MODE_SHIFT)
#define TAPE_NR(x) (
minor
(x) & ~(128 | ST_MODE_MASK))
#define TAPE_MODE(x) ((
minor
(x) & ST_MODE_MASK) >> ST_MODE_SHIFT)
/* Internal ioctl to set both density (uppermost 8 bits) and blocksize (lower
24 bits) */
...
...
@@ -4021,7 +4021,7 @@ static int osst_int_ioctl(OS_Scsi_Tape * STp, Scsi_Request ** aSRpnt, unsigned i
if
(
cmd_in
==
MTOFFL
||
cmd_in
==
MTUNLOAD
)
STp
->
rew_at_close
=
0
;
else
if
(
cmd_in
==
MTLOAD
)
{
/* STp->rew_at_close = (
MINOR
(inode->i_rdev) & 0x80) == 0; FIXME */
/* STp->rew_at_close = (
minor
(inode->i_rdev) & 0x80) == 0; FIXME */
for
(
i
=
0
;
i
<
ST_NBR_PARTITIONS
;
i
++
)
{
STp
->
ps
[
i
].
rw
=
ST_IDLE
;
STp
->
ps
[
i
].
last_block_valid
=
FALSE
;
/* FIXME - where else is this field maintained? */
...
...
@@ -4103,7 +4103,7 @@ static int os_scsi_tape_open(struct inode * inode, struct file * filp)
return
(
-
EBUSY
);
}
STp
->
in_use
=
1
;
STp
->
rew_at_close
=
(
MINOR
(
inode
->
i_rdev
)
&
0x80
)
==
0
;
STp
->
rew_at_close
=
(
minor
(
inode
->
i_rdev
)
&
0x80
)
==
0
;
if
(
STp
->
device
->
host
->
hostt
->
module
)
__MOD_INC_USE_COUNT
(
STp
->
device
->
host
->
hostt
->
module
);
...
...
@@ -4124,7 +4124,7 @@ static int os_scsi_tape_open(struct inode * inode, struct file * filp)
flags
=
filp
->
f_flags
;
STp
->
write_prot
=
((
flags
&
O_ACCMODE
)
==
O_RDONLY
);
STp
->
raw
=
(
MINOR
(
inode
->
i_rdev
)
&
0x40
)
!=
0
;
STp
->
raw
=
(
minor
(
inode
->
i_rdev
)
&
0x40
)
!=
0
;
/* Allocate a buffer for this user */
need_dma_buffer
=
STp
->
restr_dma
;
...
...
@@ -5407,7 +5407,7 @@ static int osst_attach(Scsi_Device * SDp)
#endif
tpnt
->
device
=
SDp
;
tpnt
->
devt
=
MKDEV
(
MAJOR_NR
,
i
);
tpnt
->
devt
=
mk_kdev
(
MAJOR_NR
,
i
);
tpnt
->
dirty
=
0
;
tpnt
->
in_use
=
0
;
tpnt
->
drv_buffer
=
1
;
/* Try buffering if no mode sense */
...
...
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