All of lore.kernel.org
 help / color / mirror / Atom feed
* How to know whether a given directory in in NFS
@ 2004-12-02 10:45 Raghu Ram Murthy
  2004-12-02 11:47 ` Vincent Roqueta
  2004-12-02 11:48 ` Vincent Roqueta
  0 siblings, 2 replies; 8+ messages in thread
From: Raghu Ram Murthy @ 2004-12-02 10:45 UTC (permalink / raw)
  To: nfs

Hi,

I want to know (from perl), whether a given directory
is in part of NFS. Are there any Unix commands to find
it out or any indirect methods?

Thanks in advance
-Raghuram

=====
----------------------------------------------
P.Raghu Ram Murthy, M-tech (Computer Science),
Member, Information Technology,
D E Shaw India Software Private Limited,
6-3-879 & 879/B
Begumpet, Hyderabad 500 016
Andhra Pradesh
India

Mobile: (+91) 98852 17928
----------------------------------------------

If it doesn't work, you're not hitting it with a big enough hammer


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to know whether a given directory in in NFS
  2004-12-02 10:45 How to know whether a given directory in in NFS Raghu Ram Murthy
@ 2004-12-02 11:47 ` Vincent Roqueta
  2004-12-02 11:48 ` Vincent Roqueta
  1 sibling, 0 replies; 8+ messages in thread
From: Vincent Roqueta @ 2004-12-02 11:47 UTC (permalink / raw)
  To: nfs

Le jeudi 2 D=E9cembre 2004 11:45, Raghu Ram Murthy a =E9crit=A0:
> Hi,
>
> I want to know (from perl), whether a given directory
> is in part of NFS. Are there any Unix commands to find
> it out or any indirect methods?

mount ?


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to know whether a given directory in in NFS
  2004-12-02 10:45 How to know whether a given directory in in NFS Raghu Ram Murthy
  2004-12-02 11:47 ` Vincent Roqueta
@ 2004-12-02 11:48 ` Vincent Roqueta
  2004-12-02 12:15   ` Raghu Ram Murthy
  1 sibling, 1 reply; 8+ messages in thread
From: Vincent Roqueta @ 2004-12-02 11:48 UTC (permalink / raw)
  To: nfs; +Cc: Raghu Ram Murthy

Le jeudi 2 D=E9cembre 2004 11:45, Raghu Ram Murthy a =E9crit=A0:
> Hi,
>
> I want to know (from perl), whether a given directory
> is in part of NFS. Are there any Unix commands to find
> it out or any indirect methods?

mount ?


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to know whether a given directory in in NFS
  2004-12-02 11:48 ` Vincent Roqueta
@ 2004-12-02 12:15   ` Raghu Ram Murthy
  2004-12-02 12:22     ` James Pearson
  2004-12-02 12:28     ` Vincent Roqueta
  0 siblings, 2 replies; 8+ messages in thread
From: Raghu Ram Murthy @ 2004-12-02 12:15 UTC (permalink / raw)
  To: nfs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1893 bytes --]

How with mount.

for example, /home directory is in NFS and /tmp is not
in NFS and I don't know whether /home is in NFS or
not?

Then how can I find?
-Raghuram
--- Vincent Roqueta <vincent.roqueta@ext.bull.net>
wrote:

> Le jeudi 2 Décembre 2004 11:45, Raghu Ram Murthy a
> écrit :
> > Hi,
> >
> > I want to know (from perl), whether a given
> directory
> > is in part of NFS. Are there any Unix commands to
> find
> > it out or any indirect methods?
> 
> mount ?
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
> 


=====
----------------------------------------------
P.Raghu Ram Murthy, M-tech (Computer Science),
Member, Information Technology,
D E Shaw India Software Private Limited,
6-3-879 & 879/B
Begumpet, Hyderabad 500 016
Andhra Pradesh
India

Mobile: (+91) 98852 17928
----------------------------------------------

If it doesn't work, you're not hitting it with a big enough hammer

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to know whether a given directory in in NFS
  2004-12-02 12:15   ` Raghu Ram Murthy
@ 2004-12-02 12:22     ` James Pearson
  2004-12-02 19:59       ` Dan Stromberg
  2004-12-02 12:28     ` Vincent Roqueta
  1 sibling, 1 reply; 8+ messages in thread
From: James Pearson @ 2004-12-02 12:22 UTC (permalink / raw)
  To: Raghu Ram Murthy; +Cc: nfs

You can use the statfs system call (on Linux) - see a similar thread at 
http://marc.theaimsgroup.com/?t=108784378500006&r=1&w=2

There is probably a statfs Perl module.

James Pearson

Raghu Ram Murthy wrote:
> How with mount.
> 
> for example, /home directory is in NFS and /tmp is not
> in NFS and I don't know whether /home is in NFS or
> not?
> 
> Then how can I find?
> -Raghuram
> --- Vincent Roqueta <vincent.roqueta@ext.bull.net>
> wrote:
> 
> 
>>Le jeudi 2 Décembre 2004 11:45, Raghu Ram Murthy a
>>écrit :
>>
>>>Hi,
>>>
>>>I want to know (from perl), whether a given
>>
>>directory
>>
>>>is in part of NFS. Are there any Unix commands to
>>
>>find
>>
>>>it out or any indirect methods?
>>
>>mount ?
>>
>>
>>
> 
> -------------------------------------------------------
> 
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT
>>Products from real users.
>>Discover which products truly live up to the hype.
>>Start reading now.
>>http://productguide.itmanagersjournal.com/
>>_______________________________________________
>>NFS maillist  -  NFS@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/nfs
>>
> 
> 
> 
> =====
> ----------------------------------------------
> P.Raghu Ram Murthy, M-tech (Computer Science),
> Member, Information Technology,
> D E Shaw India Software Private Limited,
> 6-3-879 & 879/B
> Begumpet, Hyderabad 500 016
> Andhra Pradesh
> India
> 
> Mobile: (+91) 98852 17928
> ----------------------------------------------
> 
> If it doesn't work, you're not hitting it with a big enough hammer
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to know whether a given directory in in NFS
  2004-12-02 12:15   ` Raghu Ram Murthy
  2004-12-02 12:22     ` James Pearson
@ 2004-12-02 12:28     ` Vincent Roqueta
  1 sibling, 0 replies; 8+ messages in thread
From: Vincent Roqueta @ 2004-12-02 12:28 UTC (permalink / raw)
  To: nfs

Le jeudi 2 D=E9cembre 2004 13:15, Raghu Ram Murthy a =E9crit=A0:
> How with mount.
>
> for example, /home directory is in NFS and /tmp is not
> in NFS and I don't know whether /home is in NFS or
> not?
>
> Then how can I find?



mount will return a line within:

nfs_server:/an/exported/directory/ on /home type nfs
or
nfs_server:/an/exported/directory/ on /home type nfs4

depending on the nfs version you are using.

You can parse the mount result. I don't know if there is an other way to kn=
ow=20
that?

Vincent


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to know whether a given directory in in NFS
  2004-12-02 12:22     ` James Pearson
@ 2004-12-02 19:59       ` Dan Stromberg
  0 siblings, 0 replies; 8+ messages in thread
From: Dan Stromberg @ 2004-12-02 19:59 UTC (permalink / raw)
  To: James Pearson; +Cc: strombrg, Raghu Ram Murthy, nfs

[-- Attachment #1: Type: text/plain, Size: 3628 bytes --]


IMO, python's a lot more practical than perl (at least until perl is
majorly overhauled for perl 6 :-S).

With python, the "os" module has a statvfs function, and the statvfs
module has symbolic constants to facilitate using the os.statvfs
function.

I used this API recently to summarize disk usage in a filesystem that
doesn't have quota support.  I had to compile python with "large file"
support though, even though IBM claims in some contexts that programs
are supposed to be large file-enabled on AIX by default.  But of course,
this assumes you'll be looking at somes that are over 2 gigabytes in
size...

On Thu, 2004-12-02 at 12:22 +0000, James Pearson wrote:
> You can use the statfs system call (on Linux) - see a similar thread at 
> http://marc.theaimsgroup.com/?t=108784378500006&r=1&w=2
> 
> There is probably a statfs Perl module.
> 
> James Pearson
> 
> Raghu Ram Murthy wrote:
> > How with mount.
> > 
> > for example, /home directory is in NFS and /tmp is not
> > in NFS and I don't know whether /home is in NFS or
> > not?
> > 
> > Then how can I find?
> > -Raghuram
> > --- Vincent Roqueta <vincent.roqueta@ext.bull.net>
> > wrote:
> > 
> > 
> >>Le jeudi 2 Décembre 2004 11:45, Raghu Ram Murthy a
> >>écrit :
> >>
> >>>Hi,
> >>>
> >>>I want to know (from perl), whether a given
> >>
> >>directory
> >>
> >>>is in part of NFS. Are there any Unix commands to
> >>
> >>find
> >>
> >>>it out or any indirect methods?
> >>
> >>mount ?
> >>
> >>
> >>
> > 
> > -------------------------------------------------------
> > 
> >>SF email is sponsored by - The IT Product Guide
> >>Read honest & candid reviews on hundreds of IT
> >>Products from real users.
> >>Discover which products truly live up to the hype.
> >>Start reading now.
> >>http://productguide.itmanagersjournal.com/
> >>_______________________________________________
> >>NFS maillist  -  NFS@lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/nfs
> >>
> > 
> > 
> > 
> > =====
> > ----------------------------------------------
> > P.Raghu Ram Murthy, M-tech (Computer Science),
> > Member, Information Technology,
> > D E Shaw India Software Private Limited,
> > 6-3-879 & 879/B
> > Begumpet, Hyderabad 500 016
> > Andhra Pradesh
> > India
> > 
> > Mobile: (+91) 98852 17928
> > ----------------------------------------------
> > 
> > If it doesn't work, you're not hitting it with a big enough hammer
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> > 
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now. 
> > http://productguide.itmanagersjournal.com/
> > _______________________________________________
> > NFS maillist  -  NFS@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nfs
> > 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: How to know whether a given directory in in NFS
@ 2004-12-03  1:09 Roger Heflin
  0 siblings, 0 replies; 8+ messages in thread
From: Roger Heflin @ 2004-12-03  1:09 UTC (permalink / raw)
  To: Raghu Ram Murthy, nfs

[-- Attachment #1: Type: text/plain, Size: 1556 bytes --]


"df <directory-name>" or the equivalent call the df command
uses (vfstat I think or something similar) works nicely.

                    Roger


-----Original Message-----
From: nfs-admin@lists.sourceforge.net on behalf of Raghu Ram Murthy
Sent: Thu 12/2/2004 4:45 AM
To: nfs@lists.sourceforge.net
Subject: [NFS] How to know whether a given directory in in NFS
 
Hi,

I want to know (from perl), whether a given directory
is in part of NFS. Are there any Unix commands to find
it out or any indirect methods?

Thanks in advance
-Raghuram

=====
----------------------------------------------
P.Raghu Ram Murthy, M-tech (Computer Science),
Member, Information Technology,
D E Shaw India Software Private Limited,
6-3-879 & 879/B
Begumpet, Hyderabad 500 016
Andhra Pradesh
India

Mobile: (+91) 98852 17928
----------------------------------------------

If it doesn't work, you're not hitting it with a big enough hammer


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs


[-- Attachment #2: Type: text/html, Size: 2549 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-12-03  1:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-02 10:45 How to know whether a given directory in in NFS Raghu Ram Murthy
2004-12-02 11:47 ` Vincent Roqueta
2004-12-02 11:48 ` Vincent Roqueta
2004-12-02 12:15   ` Raghu Ram Murthy
2004-12-02 12:22     ` James Pearson
2004-12-02 19:59       ` Dan Stromberg
2004-12-02 12:28     ` Vincent Roqueta
  -- strict thread matches above, loose matches on Subject: below --
2004-12-03  1:09 Roger Heflin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.