Skip to content

Create dirs 000 to prevent mounting accidents#35

Open
tsaavik wants to merge 1 commit intomogilefs:masterfrom
tsaavik:master
Open

Create dirs 000 to prevent mounting accidents#35
tsaavik wants to merge 1 commit intomogilefs:masterfrom
tsaavik:master

Conversation

@tsaavik
Copy link
Copy Markdown

@tsaavik tsaavik commented Oct 28, 2014

With the mountpoints set to 000 processes will not be able to write to an un-mounted mount point, in the event that a disk is not mounted.

Without this mogile could start up with an unmounted disk and start writing to the mount point's directory, which in all likelihood is the system drive. If the system drive fills you could be in for a world of hurt.

There is (optional) code later in the script to fix this, but it would affect existing directories which may (for one reason on another) be non-ideal to users. But there is no reason not to create NEW directories this way to protect the majority of use cases.

With the mountpoints set to 000 processes will not be able to write to an un-mounted mount point, in the event that a disk is not mounted.

Without this mogile could start up with an unmounted disk and start writing to the mount point's directory, which in all likelihood is the system drive. If the system drive fills you could be in for a world of hurt.

There is code later in the script to fix this, but it would affect existing directories which may (for one reason on another) be non-ideal to users. But there is no reason not to create NEW directories this way to protect the majority of use cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant