-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(mount): pass file path as parameter in DeviceBasicMountInfo() (
#539) the `Identifier.DeviceBasicMountInfo()` fetches mount attributes of a device by reading the mounts file. The path of this file is currently fixed. Pass the file path as a parameter to the function. This will provide more flexibility in the code and also ease writing unit tests for code that uses this function. The default path is exported as a constant, and can still be used. Signed-off-by: Aditya Jain <[email protected]>
- Loading branch information
Showing
3 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pass mounts file path as a parameter when fetching mount attributes using DeviceBasicMountInfo() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters