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
7206852c
Commit
7206852c
authored
Sep 27, 2002
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFS: Fix the mount-cleanup for single-subvolume filesystems.
Modid: 2.5.x-xfs:slinx:128192a
parent
1cb2d696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
fs/xfs/xfs_vfsops.c
fs/xfs/xfs_vfsops.c
+23
-26
No files found.
fs/xfs/xfs_vfsops.c
View file @
7206852c
...
...
@@ -221,33 +221,30 @@ xfs_start_flags(
mp
->
m_swidth
=
ap
->
swidth
;
}
if
((
mp
->
m_logdev_targp
!=
NULL
)
&&
(
mp
->
m_logdev_targp
!=
mp
->
m_ddev_targp
))
{
if
(
ap
->
logbufs
!=
0
&&
ap
->
logbufs
!=
-
1
&&
(
ap
->
logbufs
<
XLOG_NUM_ICLOGS
||
ap
->
logbufs
>
XLOG_MAX_ICLOGS
))
{
cmn_err
(
CE_WARN
,
"XFS: invalid logbufs value: %d [not %d-%d]
\n
"
,
ap
->
logbufs
,
XLOG_NUM_ICLOGS
,
XLOG_MAX_ICLOGS
);
return
XFS_ERROR
(
EINVAL
);
}
mp
->
m_logbufs
=
ap
->
logbufs
;
if
(
ap
->
logbufsize
!=
-
1
&&
ap
->
logbufsize
!=
16
*
1024
&&
ap
->
logbufsize
!=
32
*
1024
&&
ap
->
logbufsize
!=
64
*
1024
&&
ap
->
logbufsize
!=
128
*
1024
&&
ap
->
logbufsize
!=
256
*
1024
)
{
cmn_err
(
CE_WARN
,
"XFS: invalid logbufsize: %d [not 16k,32k,64k,128k or 256k]
\n
"
,
ap
->
logbufsize
);
return
XFS_ERROR
(
EINVAL
);
}
mp
->
m_logbsize
=
ap
->
logbufsize
;
mp
->
m_fsname_len
=
strlen
(
ap
->
fsname
)
+
1
;
mp
->
m_fsname
=
kmem_alloc
(
mp
->
m_fsname_len
,
KM_SLEEP
);
strcpy
(
mp
->
m_fsname
,
ap
->
fsname
);
if
(
ap
->
logbufs
!=
0
&&
ap
->
logbufs
!=
-
1
&&
(
ap
->
logbufs
<
XLOG_NUM_ICLOGS
||
ap
->
logbufs
>
XLOG_MAX_ICLOGS
))
{
cmn_err
(
CE_WARN
,
"XFS: invalid logbufs value: %d [not %d-%d]
\n
"
,
ap
->
logbufs
,
XLOG_NUM_ICLOGS
,
XLOG_MAX_ICLOGS
);
return
XFS_ERROR
(
EINVAL
);
}
mp
->
m_logbufs
=
ap
->
logbufs
;
if
(
ap
->
logbufsize
!=
-
1
&&
ap
->
logbufsize
!=
16
*
1024
&&
ap
->
logbufsize
!=
32
*
1024
&&
ap
->
logbufsize
!=
64
*
1024
&&
ap
->
logbufsize
!=
128
*
1024
&&
ap
->
logbufsize
!=
256
*
1024
)
{
cmn_err
(
CE_WARN
,
"XFS: invalid logbufsize: %d [not 16k,32k,64k,128k or 256k]
\n
"
,
ap
->
logbufsize
);
return
XFS_ERROR
(
EINVAL
);
}
mp
->
m_logbsize
=
ap
->
logbufsize
;
mp
->
m_fsname_len
=
strlen
(
ap
->
fsname
)
+
1
;
mp
->
m_fsname
=
kmem_alloc
(
mp
->
m_fsname_len
,
KM_SLEEP
);
strcpy
(
mp
->
m_fsname
,
ap
->
fsname
);
/*
* Pull in the 'wsync' and 'ino64' mount options before we do the real
...
...
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