-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lsfd: add shortcut for --file (or --inode) and --fs #2567
Comments
I'll work on this item after #2531 is merged. This one was in the checklists . |
Like Wireshark, lsfd has two types of filters.
Before implementing |
@karelzak Could you assign me to this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lsof has a very useful feature,
lsof /file/name
to list processes which has this file open. An alternative withlsfd
for this is to get the inode number and filesystem id of this file and uselsof -Q 'INODE == 4321 && MNTID == 123
. This is just too clumsy for regular usage. This is what I'd suggest to have--inode
. Note: it is not really-Q 'NAME == "/file/name"'
- since the file might be open by more than single name in case it has multiple links, - this is why--file
is different from--inode
.And another very useful shortcut is
--fs /mntpt
(or--mountpoint /mntpt
) - to list all files open from the given filesystem (which should be equivalent to-Q 'MNTID == 123'
, I think).The text was updated successfully, but these errors were encountered: