mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Copy stat information from mount structure before it can change identity.
This commit is contained in:
parent
60b0b1aa18
commit
4e59868e08
2 changed files with 4 additions and 4 deletions
|
|
@ -4330,11 +4330,11 @@ kern_fhstatfs(struct thread *td, fhandle_t fh, struct statfs *buf)
|
|||
sp->f_namemax = NAME_MAX;
|
||||
sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
|
||||
error = VFS_STATFS(mp, sp, td);
|
||||
if (error == 0)
|
||||
*buf = *sp;
|
||||
out:
|
||||
vfs_rel(mp);
|
||||
VFS_UNLOCK_GIANT(vfslocked);
|
||||
if (sp)
|
||||
*buf = *sp;
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4330,11 +4330,11 @@ kern_fhstatfs(struct thread *td, fhandle_t fh, struct statfs *buf)
|
|||
sp->f_namemax = NAME_MAX;
|
||||
sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
|
||||
error = VFS_STATFS(mp, sp, td);
|
||||
if (error == 0)
|
||||
*buf = *sp;
|
||||
out:
|
||||
vfs_rel(mp);
|
||||
VFS_UNLOCK_GIANT(vfslocked);
|
||||
if (sp)
|
||||
*buf = *sp;
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue