]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
- Fix file descriptor leak in path_to_fshandle. It now caches
authorBill Kendall <wkendall@sgi.com>
Thu, 15 Apr 2004 19:42:58 +0000 (19:42 +0000)
committerBill Kendall <wkendall@sgi.com>
Thu, 15 Apr 2004 19:42:58 +0000 (19:42 +0000)
commitdc98722609662f17d6159c9df4ffdf5662561804
tree9c85b42145371c937e862ea6af896fbd8da5a051
parentd910a2e93934919b839f50bbd958e3790d9a8d74
- Fix file descriptor leak in path_to_fshandle. It now caches
one descriptor per filesystem.
- In xfsrestore, always allocate a fs handle during content_init.
This allows us to not have to call path_to_fshandle before attempting
every open_by_handle.
- Change open_by_fshandle to open_by_handle is cases where we are
passing a file handle (instead of a fshandle).
path_to_fshandle was opening a file and never closing it. We now close it
unless the descriptor is to be used in the descriptor cache. One descriptor
is cached for each unique filesystem that path_to_fshandle is called on.
VERSION
doc/CHANGES
libhandle/handle.c