mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Kernel: Properly propagate bind mount flags
Previously, when performing a bind mount flags other than MS_BIND were ignored. Now, they're properly propagated the same way a for any other mount.
This commit is contained in:
parent
b620ed25ab
commit
93ff911473
3 changed files with 7 additions and 7 deletions
|
@ -48,7 +48,7 @@ public:
|
|||
class Mount {
|
||||
public:
|
||||
Mount(FS&, Custody* host_custody, int flags);
|
||||
Mount(Inode& source, Custody& host_custody);
|
||||
Mount(Inode& source, Custody& host_custody, int flags);
|
||||
|
||||
InodeIdentifier host() const;
|
||||
InodeIdentifier guest() const { return m_guest; }
|
||||
|
@ -74,7 +74,7 @@ public:
|
|||
|
||||
bool mount_root(FS&);
|
||||
KResult mount(FS&, Custody& mount_point, int flags);
|
||||
KResult bind_mount(Custody& source, Custody& mount_point);
|
||||
KResult bind_mount(Custody& source, Custody& mount_point, int flags);
|
||||
KResult unmount(InodeIdentifier guest_inode_id);
|
||||
|
||||
KResultOr<NonnullRefPtr<FileDescription>> open(StringView path, int options, mode_t mode, Custody& base, Optional<UidAndGid> = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue