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
5f6e8ce4
Commit
5f6e8ce4
authored
Sep 07, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fsck knows why the devil does st.c has to call something a partition,
but it does...
parent
165088f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/scsi/st.c
drivers/scsi/st.c
+7
-7
No files found.
drivers/scsi/st.c
View file @
5f6e8ce4
...
@@ -184,7 +184,7 @@ static struct Scsi_Device_Template st_template = {
...
@@ -184,7 +184,7 @@ static struct Scsi_Device_Template st_template = {
static
int
st_compression
(
Scsi_Tape
*
,
int
);
static
int
st_compression
(
Scsi_Tape
*
,
int
);
static
int
find_partition
(
Scsi_Tape
*
);
static
int
find_partition
(
Scsi_Tape
*
);
static
int
update
_partition
(
Scsi_Tape
*
);
static
int
switch
_partition
(
Scsi_Tape
*
);
static
int
st_int_ioctl
(
Scsi_Tape
*
,
unsigned
int
,
unsigned
long
);
static
int
st_int_ioctl
(
Scsi_Tape
*
,
unsigned
int
,
unsigned
long
);
...
@@ -1028,9 +1028,9 @@ static int st_flush(struct file *filp)
...
@@ -1028,9 +1028,9 @@ static int st_flush(struct file *filp)
}
}
if
(
STp
->
can_partitions
&&
if
(
STp
->
can_partitions
&&
(
result2
=
update
_partition
(
STp
))
<
0
)
{
(
result2
=
switch
_partition
(
STp
))
<
0
)
{
DEBC
(
printk
(
ST_DEB_MSG
DEBC
(
printk
(
ST_DEB_MSG
"st%d:
update
_partition at close failed.
\n
"
,
dev
));
"st%d:
switch
_partition at close failed.
\n
"
,
dev
));
if
(
result
==
0
)
if
(
result
==
0
)
result
=
result2
;
result
=
result2
;
goto
out
;
goto
out
;
...
@@ -1206,7 +1206,7 @@ static ssize_t rw_checks(Scsi_Tape *STp, struct file *filp, size_t count, loff_t
...
@@ -1206,7 +1206,7 @@ static ssize_t rw_checks(Scsi_Tape *STp, struct file *filp, size_t count, loff_t
}
)
/* end DEB */
}
)
/* end DEB */
if
(
STp
->
can_partitions
&&
if
(
STp
->
can_partitions
&&
(
retval
=
update
_partition
(
STp
))
<
0
)
(
retval
=
switch
_partition
(
STp
))
<
0
)
goto
out
;
goto
out
;
if
(
STp
->
block_size
==
0
&&
STp
->
max_block
>
0
&&
if
(
STp
->
block_size
==
0
&&
STp
->
max_block
>
0
&&
...
@@ -2904,7 +2904,7 @@ static int find_partition(Scsi_Tape *STp)
...
@@ -2904,7 +2904,7 @@ static int find_partition(Scsi_Tape *STp)
/* Change the partition if necessary */
/* Change the partition if necessary */
static
int
update
_partition
(
Scsi_Tape
*
STp
)
static
int
switch
_partition
(
Scsi_Tape
*
STp
)
{
{
ST_partstat
*
STps
;
ST_partstat
*
STps
;
...
@@ -3239,7 +3239,7 @@ static int st_ioctl(struct inode *inode, struct file *file,
...
@@ -3239,7 +3239,7 @@ static int st_ioctl(struct inode *inode, struct file *file,
}
}
if
(
STp
->
can_partitions
&&
STp
->
ready
==
ST_READY
&&
if
(
STp
->
can_partitions
&&
STp
->
ready
==
ST_READY
&&
(
i
=
update
_partition
(
STp
))
<
0
)
{
(
i
=
switch
_partition
(
STp
))
<
0
)
{
retval
=
i
;
retval
=
i
;
goto
out
;
goto
out
;
}
}
...
@@ -3260,7 +3260,7 @@ static int st_ioctl(struct inode *inode, struct file *file,
...
@@ -3260,7 +3260,7 @@ static int st_ioctl(struct inode *inode, struct file *file,
goto
out
;
goto
out
;
}
}
if
(
STp
->
can_partitions
&&
if
(
STp
->
can_partitions
&&
(
i
=
update
_partition
(
STp
))
<
0
)
{
(
i
=
switch
_partition
(
STp
))
<
0
)
{
retval
=
i
;
retval
=
i
;
goto
out
;
goto
out
;
}
}
...
...
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