Filesystem of a file
From: Michel Bardiaux (mbardiaux_at_peaktime.be)
Date: 09/26/03
- Next message: Christian Biesinger: "Re: Filesystem of a file"
- Previous message: Michel Bardiaux: "Re: how to avoid SIGSEGV on NULL pointer"
- Next in thread: Christian Biesinger: "Re: Filesystem of a file"
- Reply: Christian Biesinger: "Re: Filesystem of a file"
- Reply: Dragan Cvetkovic: "Re: Filesystem of a file"
- Reply: Kevin Easton: "Re: Filesystem of a file"
- Reply: Måns Rullgård: "Re: Filesystem of a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Sep 2003 17:32:43 +0200
I have an app taking 2 arguments, both file pathnames, and with the
constraint that they must be on the same filesystem. I could not find a
system call or libc for that, and a look in GNU df sources showed an
incredibly complex code. Besides, it reads /etc/mtab which is *not* a
pseudo-file, hence not absolutely reliable.
I find it hard to believe that there is no clean API for finding the
filesystem of a file.
Any suggestions?
TIA
-- Michel Bardiaux Peaktime Belgium S.A. Bd. du Souverain, 191 B-1160 Bruxelles Tel : +32 2 790.29.41
- Next message: Christian Biesinger: "Re: Filesystem of a file"
- Previous message: Michel Bardiaux: "Re: how to avoid SIGSEGV on NULL pointer"
- Next in thread: Christian Biesinger: "Re: Filesystem of a file"
- Reply: Christian Biesinger: "Re: Filesystem of a file"
- Reply: Dragan Cvetkovic: "Re: Filesystem of a file"
- Reply: Kevin Easton: "Re: Filesystem of a file"
- Reply: Måns Rullgård: "Re: Filesystem of a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|