From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,86d8c5666062ac5 X-Google-Attributes: gid1164f8,public From: mark@cita.toronto.edu (Mark Bartelt) Subject: Re: Questions concerning umount on Digital Unix as compared to Linux..... Date: 1998/07/26 Message-ID: #1/1 X-Deja-AN: 375035633 Sender: nntp@campus-news-reading.utoronto.ca (News) X-Nntp-Posting-Host: rorqual.cita.utoronto.ca References: <35BA9AB2.8654123@plutonium.net> Organization: Canadian Institute for Theoretical Astrophysics Reply-To: mark@cita.utoronto.ca Newsgroups: comp.sys.dec [ 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)" ]