473,395 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

c Filesystem auslesen

Hallo,

ist es möglich rauszufinden auf welchen filesystem sich meine datei
befindet ?
zbsp.

habe eine datei auf nen nfsserver liegen. es möchte ich gerne rausfinden,
das die datei auf nen nfsserver liegt

oder

habe eine datei die liegt auf nen sambaserver. es möchte ich rausfinden
das die datei auf nen sambaserver liegt.
gruss
haltestelle

Jul 22 '05 #1
5 2115
"haltestelle" <ha*********@freenet.de> wrote in message
news:pa****************************@freenet.de...
Hallo,

ist es möglich rauszufinden auf welchen filesystem sich meine datei
befindet ?
zbsp.

habe eine datei auf nen nfsserver liegen. es möchte ich gerne rausfinden,
das die datei auf nen nfsserver liegt

oder

habe eine datei die liegt auf nen sambaserver. es möchte ich rausfinden
das die datei auf nen sambaserver liegt.
gruss
haltestelle

Hello,

You might find an answer for your question on *nix programming group.
Perhaps statfs() would do.

--
Elias
Jul 22 '05 #2
On Fri, 16 Jan 2004 12:39:37 +0100, haltestelle wrote:
Hallo,

ist es möglich rauszufinden auf welchen filesystem sich meine datei
befindet ?
zbsp.
Ja det er mulig. Men ikke med standard C. Dette spørsmålet hadde nok
egentlig passet bedre i comp.unix.programmer
habe eine datei auf nen nfsserver liegen. es möchte ich gerne rausfinden,
das die datei auf nen nfsserver liegt
Du må finne ut hvor i filsystemet filen din ligger og så sjekke med
utdata fra mount eller eventuelle systemkall hva som er mountet der i
filsystemet.
oder

habe eine datei die liegt auf nen sambaserver. es möchte ich rausfinden
das die datei auf nen sambaserver liegt.
Samme metode som over.
gruss
haltestelle


Bare hyggelig.

Foreslår at neste gang du spør om noe i en engelskspåklig nyhetsgruppe
at du holder deg til engelsk.

--
NPV

"the large print giveth, and the small print taketh away"
Tom Waits - Step right up

Jul 22 '05 #3
haltestelle wrote:
Hallo,

ist es möglich rauszufinden auf welchen filesystem sich meine datei
befindet ?
zbsp.

habe eine datei auf nen nfsserver liegen. es möchte ich gerne rausfinden,
das die datei auf nen nfsserver liegt

oder

habe eine datei die liegt auf nen sambaserver. es möchte ich rausfinden
das die datei auf nen sambaserver liegt.
gruss
haltestelle


Why you are using German if you even can't speak (or at least write) it
correctly?

Jul 22 '05 #4
haltestelle wrote:
Hallo,

ist es möglich rauszufinden auf welchen filesystem sich meine datei
befindet ?
zbsp.

habe eine datei auf nen nfsserver liegen. es möchte ich gerne rausfinden,
das die datei auf nen nfsserver liegt

oder

habe eine datei die liegt auf nen sambaserver. es möchte ich rausfinden
das die datei auf nen sambaserver liegt.
gruss
haltestelle


Why you are using German if you can't speak (or at least write) it
correctly?

Jul 22 '05 #5
haltestelle wrote:
Hallo,

ist es möglich rauszufinden auf welchen filesystem sich meine datei
befindet ?
zbsp.

habe eine datei auf nen nfsserver liegen. es möchte ich gerne rausfinden,
das die datei auf nen nfsserver liegt

oder

habe eine datei die liegt auf nen sambaserver. es möchte ich rausfinden
das die datei auf nen sambaserver liegt.
gruss
haltestelle


Lesen Sie auf news:de.comp.lang.c++.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Peter Hansen | last post by:
The term "mock filesystem" refers to code allowing unit or acceptance tests to create, read and write, and manipulate in other ways "virtual" files, without any actual disk access. Everything is...
1
by: Josef Buergi | last post by:
Hallo Ich möchte aus unserem Fileserver die Directorystruktur inkl Filenamen via ASP auslesen und diese in eine DB Tabelle eintragen. Der Webserver (IIS) läuft auf einem anderen Rechner. Ich...
1
by: Francois Fernandes | last post by:
Hi list! I would like to write a linux c++ program which mounts it's own filesystem within a file, that is located in the Linux filesystem. Now I don't know how to start that. I need basic help...
3
by: Michael | last post by:
Is this the correct place to ask about Boost libs? If it is.............. #include <boost/filesystem/path.hpp> #include <boost/filesystem/operations.hpp> using namespace boost; using...
1
by: Lucas Fletcher | last post by:
Hi All, I've searched the web for an article explaining the many tradeoffs between storing your XML in a database vs the filesystem but I haven't really found anything of note. This is the...
1
by: marcel.stallmach | last post by:
Hallo, ich bin ehrlich schon am verzweifeln. Ich habe eine lokale Anwendung (Access) von wo aus eine HttpSendRequest an eine Website gesendet wird. Im HttpSendRequest werden die Daten per...
2
by: Jeff Davis | last post by:
I have virtual hosted users on a server and some of them have a postgresql database. I'm concerned about the outside possibility that a user could create an infinite loop and fill up the partition...
5
by: GaryE | last post by:
Hello: I am having trouble linking a couple of files using the boost::filesystem. I am using MSVC 6.0. Here is an abbreviated version of my problem: foo.h: #ifndef __FOO_ #define...
1
by: Thomas W | last post by:
I want to create a virtual filesystem based on a relational database. It might run as a server on a different machine, but it has to be available like a normal filesystem, either shared using...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.