[PLUTO-help] strani messaggi da mount

miKe m.m.asciutti a email.it
Ven 7 Gen 2005 14:52:24 CET


Alle 12:12, venerdì 7 gennaio 2005,  in merito a Re: [PLUTO-help] 
strani messaggi da mount,  Carlo Agrusti   ha scritto:

> >
> > Come volevasi dimostrare: quel 'sw' è di troppo
> > ed è presente nella lettera di Alessandro
>
> Mmh, non l'avevo notato prima, ma anche tutte le mie debian hanno
> "sw" come opzioni; man mount non mi ha giovato - che sia una
> undocumented? oppure un baco di debian?

ho guardato meglio..
pur non avendolo mai usato esiste eccome :

****
endfsent(3) - Linux man page


NAME 

 getfsent, getfsspec, getfsfile, setfsent, endfsent - handle fstab 
entries 

SYNOPSIS 

 #include <fstab.h> 

void endfsent(void); 

..

DESCRIPTION 

 These functions read from the file /etc/fstab. The struct fstab is 
defined by 

struct fstab {
     char *fs_spec;          /* block device name */
     char *fs_file;          /* mount point */
     char *fs_vfstype;       /* filesystem type */
     char *fs_mntops;        /* mount options */
     const char *fs_type;    /* rw/rq/ro/sw/xx option */
     int fs_freq;            /* dump frequency, in days */
     int fs_passno;          /* pass number on parallel dump */
};

 Here the field fs_type contains (on a *BSD system) one of the five 
strings "rw", "rq", "ro", "sw", "xx" (read-write, read-write with 
quotas, read-only, swap, ignore). 
...
*********
e di nuovo:
*********
The fourth field, (mnt_options), describes the mount options 
associated with the file system or partition.  It is formatted as a 
comma separated list of options and must contain, at a minimum, one 
of the following mount options.  There are no default mount options; 
the subsequent mount operation fails if you do not specify a mount 
option or if you specify an incorrect or undocumented mount option.  
See mount(8) for a complete list  and description of the legal mount 
options for the various file system types.

  sw        Specifies that the partition is used as swap space.  Use 
the  swapon command to specify additional swap space.  [Because Tru64
UNIX does not currently support paging and swapping to a regular           
file, the following options are not supported.] If you specify
the sw mount option, you can also specify the following options
that apply to partitions used as swap space:

            pri=n     Specifies the swap space priority.  The n 
variable can  be 0, 1, 2, 3, 4, with 0 being lowest priority, and 4                      
being highest priority.

            lowater=n Specifies the low water mark. If the paging file 
grows  larger than the low water mark, and then shrinks below
the low water mark, the operating system will not make  the file 
smaller than the low water mark. If the low water mark is set to 0, 
then the paging file will not shrink after paging space is freed.  
The default value for the low water mark is 20Mbytes.

            hiwater=n Specifies the high water mark, which is the 
limit to which the operating system will expand the paging file.
The default value for the high water mark is unlimited.

-- 

bye

miKe

_________________________________________
CRUX-PPC 2.0 - GNU/Linux 2.6.10 @ iBook G3  
R.U.#219755 S.R.U.#705 R.M.#110932#273728
Majalug user 



More information about the pluto-help mailing list