Add new methods to monitoring_fs.go
The merge introduces a new FileSystem definition in the dependency. Some
new methods are undefined in monitoring_fs.go. So, here they get
defined.
@@ -179,6 +179,15 @@ func (fs *monitoringFileSystem) CreateFile(
return err
}
+func (fs *monitoringFileSystem) CreateLink(
+ ctx context.Context,
+ op *fuseops.CreateLinkOp) error {
+ incrementCounterFsRequests("CreateLink")
+ err := fs.wrapped.CreateLink(ctx, op)
+ incrementCounterFsErrors("CreateLink", err)
+ return err
+}
+
func (fs *monitoringFileSystem) CreateSymlink(
ctx context.Context,
op *fuseops.CreateSymlinkOp) error {
@@ -342,3 +351,12 @@ func (fs *monitoringFileSystem) SetXattr(
incrementCounterFsErrors("SetXattr", err)
return err
}
+
+func (fs *monitoringFileSystem) Fallocate(
+ ctx context.Context,
+ op *fuseops.FallocateOp) error {
+ incrementCounterFsRequests("Fallocate")
+ err := fs.wrapped.Fallocate(ctx, op)
+ incrementCounterFsErrors("Fallocate", err)
+ return err
+}
