in reply to Re^2: How to instantaneously automatically save
in thread How to instantaneously automatically save

The easiest way is to rename the zfs and zpool commands to something else (zfs.org?) and name your new programs zfs and zpool.

Alternatively, set up shell aliases for the users using these commands.

Alternatively, learn about what APIs ZFS offers to know about what zfs and zpool do or change, and listen to these API calls.

Replies are listed 'Best First'.
Re^4: How to instantaneously automatically save
by parv (Parson) on Jan 14, 2024 at 10:17 UTC
      Thank you so much, parv. Sorry for repeating myself too much, but I want you guys to understand what I'm trying to accomplish: What I want is for my perl program to listen immediately for whenever as soon as any change is made on the ZFS filesystem (if a dataset was created, if a clone was made, well any sort of change on the filesystem) save it instantaneously in database.
Re^4: How to instantaneously automatically save
by Anonymous Monk on Jan 14, 2024 at 09:41 UTC
    Thank you very much, Corion. What I want is for my perl program to listen for whenever as soon as any change is made on the ZFS filesystem (if a dataset was created, if a clone was made, well any sort of change on the filesystem) save it immediately in database. So I will go by what you said in your last sentence, thanks again.