determining nfs mount from struct stat
From: bill pursell (bill.pursell_at_gmail.com)
Date: 11/26/05
- Next message: Rocks: "Multithreaded App hanging in pthread calls"
- Previous message: Argus225: "Re: Analysing core files"
- Next in thread: Måns Rullgård: "Re: determining nfs mount from struct stat"
- Reply: Måns Rullgård: "Re: determining nfs mount from struct stat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Nov 2005 00:51:38 -0800
I have an open file descriptor for a directory, and I would like to
call fcntl to put an F_NOTIFY on it. Since the notification will fail
if the directory is NFS mounted (or rather, no notification will
occur), I'd like to check that first. That is, I'd like to check if
the file descriptor refers to a directory that is on a local device or
a networked device (eg nfs). I can call fstat for the file descriptor,
and that gives me the device number (st_dev), but I'm not sure how to
use that. I think this becomes moot with inotify, but we're still
running 2.6.9 kernels, so that's not an option. Also, this is
something I should know how to do.
Any pointers appreciated.
- Next message: Rocks: "Multithreaded App hanging in pthread calls"
- Previous message: Argus225: "Re: Analysing core files"
- Next in thread: Måns Rullgård: "Re: determining nfs mount from struct stat"
- Reply: Måns Rullgård: "Re: determining nfs mount from struct stat"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|