aboutsummaryrefslogtreecommitdiff
path: root/ext4/feature_flag.go
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-10-12 17:59:45 -0700
committerJoseph Richey <joerichey94@gmail.com>2017-10-19 02:22:25 -0700
commitb4299090c3e503ba0c49a6086b1a46c218ca45f4 (patch)
tree889adbf3da9616a5c6eaa783291e5f94c01955a2 /ext4/feature_flag.go
parent921f1c977c4e0704f61e3a7c092d3a4317ab278c (diff)
Command, Context, command line splitting setup
Diffstat (limited to 'ext4/feature_flag.go')
-rw-r--r--ext4/feature_flag.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext4/feature_flag.go b/ext4/feature_flag.go
index 4b588d6..ab618e2 100644
--- a/ext4/feature_flag.go
+++ b/ext4/feature_flag.go
@@ -42,11 +42,7 @@ type Ext4Filesystem struct {
// NewExt4Filesystem creates a new Ext4Filesystem from a mountpoint path. Fail
// if the path is not the mountpoint of an ext4 filesystem or cannot be opened.
-func NewExt4Filesystem(mountpoint string) (*Ext4Filesystem, error) {
- mount, err := filesystem.FindMount(set.Arg(1))
- if err != nil {
- return nil, err
- }
+func NewExt4Filesystem(mount *filesystem.Mount) (*Ext4Filesystem, error) {
if mount.Filesystem != "ext4" {
err := fmt.Errorf("%q is not an ext4 filesystem (type %q)", mount.Path, mount.Filesystem)
return nil, err