Skip to main content
added 154 characters in body
Source Link
Tom Hale
  • 33.4k
  • 42
  • 164
  • 257

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

Too slow as a shell script with all the greping. Perhaps system call interface to /proc information.

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

Too slow as a shell script with all the greping. Perhaps system call interface to /proc information.

added 85 characters in body
Source Link
Tom Hale
  • 33.4k
  • 42
  • 164
  • 257

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

Add sdev info
Source Link
Tom Hale
  • 33.4k
  • 42
  • 164
  • 257

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

  • Get mountpoint pathname and device using mnt_id as an index into /proc/[pid]/mountinfo
  • Convert ino to decimal
  • Lookup pathnames from inode:
  • btrfs (requires pathname)
  • ext4 (requires device)

Possibly lsof: list only files of a particular type with a_inode.

(WIP Answer)

Thanks to muru's answer for the kickstart.

Using the information in /proc/[pid]/fdinfo/[fd#]:

Possibly lsof: list only files of a particular type with a_inode.

Add lsof a_inode
Source Link
Tom Hale
  • 33.4k
  • 42
  • 164
  • 257
Loading
Source Link
Tom Hale
  • 33.4k
  • 42
  • 164
  • 257
Loading