update.flexfs
update.flexfs is a manual update utility that installs the latest mount client binary and restarts active mounts. It provides an alternative to the automatic update mechanism built into mount.flexfs. Requires root privileges.
sudo update.flexfs [flags]All flags are public.
| Flag | Type | Default | Description |
|---|---|---|---|
--force, -f | bool | false | Force update and perform a hard reset |
--mount, -m | bool | false | Mount /etc/fstab entries after update |
Update Process
Section titled “Update Process”- Install: Downloads and installs the latest
mount.flexfsbinary to/sbin/mount.flexfs. - Unmount: Attempts to cleanly unmount all active flexFS mounts.
- Remount (with
--mount): Re-mounts all fstab entries.
If clean unmounting fails for any mount point:
- Without
--force: The utility prints an error and suggests closing processes or using--force. - With
--force: Performs a hard reset that kills all mount users and clients, resets mount points, clears caches and logs, and remounts fstab entries.
Hard Reset (—force)
Section titled “Hard Reset (—force)”The hard reset sequence:
- Kill all processes using flexFS mount points (
fuser -k) - Kill all mount.flexfs processes (
pkill -KILL mount.flexfs) - Unmount and recreate all fstab mount point directories
- Clear caches from
/dev/shm/.flexfs*and the mount cache directory - Clear log files
- Remount fstab entries (if
--mountis set)