Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mark@cita.toronto.edu (Mark Bartelt)
Subject: Re: Questions concerning umount on Digital Unix as compared to Linux.....
Date: 1998/07/26	[thread overview]
Message-ID: <EwpH2q.GoH@campus-news-reading.utoronto.ca> (raw)
In-Reply-To: 35BA9AB2.8654123@plutonium.net

[ Steven J. Hill ]

>>                                       I am having a problem with
>>  the umount command. In the OSF header file it shows the prototype
>>  as:
>>  
>>          extern int umount( char *, int );
   [ ... ]
>>  What is the second argument value in the OSF call?

I presume that you don't have access to a Digital UNIX system at the moment,
else "RTFM" would be the appropriate answer.  Anyway, doing a "man 2 umount"
tells us that ...

  umnt_flag Specifies one of the following values:

            MNT_FORCE The file system should be forcibly umounted even if
                      files are still active.  Active special devices con-
                      tinue to work, but any further accesses to any other
                      active files result in errors even if the file system
                      is later remounted.  Support for a forcible unmount is
                      file system dependent.

The "one of" is a bit amusing, since MNT_FORCE is the only value described in
the manpage.  However, /usr/include/sys/mount.h has ...

#define MNT_FORCE       0x1
#define MNT_NOFORCE     0x2

... which leads one to wonder what the behaviour is if the second argument is
zero.

Mark Bartelt                                                     416/978-5619
Canadian Institute for                                  mark@cita.utoronto.ca
Theoretical Astrophysics                    http://www.cita.utoronto.ca/~mark

"Clothes not busy being worn are busy drying."    --    Dylan, on laundry day
            [ singing "It's all right, ma (I'm only bleaching)" ]



  parent reply	other threads:[~1998-07-26  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-25  4:00 Questions concerning umount on Digital Unix as compared to Linux Steven J. Hill
1998-07-26  4:00 ` Douglas H. Borsom
1998-07-26  4:00 ` Mark Bartelt [this message]
1998-07-27  4:00   ` Robert Harley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox