aws / aws/efs-utils

Feature Request: EFS Watchdog Service to Handle Parent Directory Moves of Mount Points

Open
#273 1 comment 0 reactions 0 assignees View on GitHub
feature request stale
Dominant language
Rust
Stars
361
Forks
238
Avg merge
2d 13h
Merged PRs (30d)
3

Description

**Description:**
The EFS watchdog service currently terminates connections when a parent directory containing an EFS mount point is moved, even though the Linux system successfully updates the mount points. This creates issues during application installations that involve directory restructuring.

**Current Behavior:**

1. When an EFS mount point's parent directory is moved:
- Linux updates mount points correctly (reflected in /etc/mtab and /proc/mounts)
- EFS watchdog service continues to reference old absolute path in state files
- Watchdog terminates stunnel/efs-proxy connection when original path isn't found
- File system becomes inaccessible

**Reproduction Steps:**

```
# Mount EFS
sudo mount -t efs -o iam,tls,accesspoint=fsap-xxx fs-xxx:/ efs/path1/mnt1/

# Verify mount
mount | grep nfs4
# Shows successful mount

# Move parent directory
mv ~/efs/path1 ~/efs/path2

# Try to access mount point
cat ~/efs/path2/mnt1/file1
# Process hangs due to terminated connection

```

**Proposed Enhancement:**
Enhance the watchdog service to:

- Handle mount point path changes gracefully
- Update state files when parent directories are moved

Contributor guide

Open the contributing guide

Research direction

No source files, tests, or entry points are named. Start by locating the EFS watchdog service and its state-file handling, then reproduce the parent-directory move described in the issue; done means the moved mount remains accessible and the watchdog no longer terminates its connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
infrastructure, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.