From b4299090c3e503ba0c49a6086b1a46c218ca45f4 Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Thu, 12 Oct 2017 17:59:45 -0700 Subject: Command, Context, command line splitting setup --- ext4/feature_flag.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext4/feature_flag.go') 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 -- cgit v1.2.3