Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
util-linux
fix-hang-on-stale-nfs.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-hang-on-stale-nfs.diff of Package util-linux
--- mount/lomount.c +++ mount/lomount.c @@ -109,7 +109,14 @@ static int is_loop_used(int fd) { struct loop_info li; - return ioctl (fd, LOOP_GET_STATUS, &li) == 0; + int ret; + ret = ioctl (fd, LOOP_GET_STATUS, &li); + if (ret == 0) + return 1; + if (ret < 0 && (errno == ENXIO)) + return 0; + /* all other errors, e.g. ENOENT or ESTALE are an error. */ + return -1; } int
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor