Filesystem of a file

From: Michel Bardiaux (mbardiaux_at_peaktime.be)
Date: 09/26/03


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


Relevant Pages

  • Re: Filesystem of a file
    ... > I have an app taking 2 arguments, both file pathnames, and with the ... > constraint that they must be on the same filesystem. ...
    (comp.os.linux.development.apps)
  • Re: The argument for fs assistance in handling archives
    ... | user space - that way it just works. ... | them in user space - and then make the filesystem version be _compatible_ ... cut certain features, replace them with others... ... every single app now has ...
    (Linux-Kernel)
  • chown/chmod/lofiadm problem with MQ
    ... specifically install it on the following file system structure ... I dont really want to reconfigure my disk layout (Currently I only have ... filesystem but this is how the app was designed its unable to function ...
    (comp.unix.solaris)
  • Re: Photo download - pic being used by OSX?
    ... being used by another app and that app could be damaged by deleting ... You know that the HFS+ journalling doesn't stop open ... What is HFS+ journalling???? ... HFS+ is the format of the normal Mac filesystem. ...
    (uk.comp.sys.mac)
  • Re: Apple Products
    ... you have none of that (unless if you have developer access to the filesystem via a connected mac). ... It's just reinstall the application from the app store and hope whatever killed it don't happen again... ...
    (uk.comp.sys.mac)