03-25-2014
Truncating the unlinked file will certainly work with ZFS too.
These 2 Users Gave Thanks to jlliagre For This Post:
9 More Discussions You Might Find Interesting
1. Solaris
Hi All
There is one folder in global zone I just want to share the same folder innon global zone. How can i do it?
pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies
2. Solaris
Hi Guys,
My requirement is I have file called /opt/orahome/.profile in non global zone.
PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:.
export PATH
PS1="\${ORACLE_SID}:`hostname`:\$PWD$ "
export PS1
EDITOR=vi
export EDITOR
ENV=/opt/orahome/.kshrc
export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies
3. Solaris
Hi,
Is it possible to access application installed on global-zone from a non-global zone?
Is there any configuration to achieve the above requirement?
Tried looking up information but unable to find.
Thanks in advance.
Eugene (3 Replies)
Discussion started by: srage
3 Replies
4. Solaris
Hi Greetings...
I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies
5. Solaris
Hi Guys
I have one Global Zone and 2 non-global zones.
root@solar109
# zoneadm list -icv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
20 solar109b running ... (1 Reply)
Discussion started by: fryzh
1 Replies
6. Solaris
can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT.
System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies
7. Solaris
hi all,
Just a simple question but i cant get the answers in the book -
In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone
Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies
8. Solaris
Hi,
If I change date and time in global zone, then it will affect in non global zones.
During this process what files will get affect in non global zones and which mechanism it's using to change.
gloabl zone:Solaris 11.3 X86
TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies
9. Solaris
Hi, hoping someone can help, its been a while since I used Solaris.
After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin)
However, the NGZ cannot access any other netwqork devices, it can't even see the default router
... (2 Replies)
Discussion started by: GazinLincoln
2 Replies
unlink(2) System Calls Manual unlink(2)
NAME
unlink - remove directory entry; delete file
SYNOPSIS
DESCRIPTION
The system call removes the directory entry named by the path name pointed to by path.
When all links to a file have been removed and no process has the file open, the space occupied by the file is freed and the file ceases to
exist. If one or more processes have the file open when the last link is removed, only the directory entry is removed immediately so that
processes that do not already have the file open cannot access the file. After all processes close their references to the file, if there
are no more links to the file, the space occupied by the file is then freed and the file ceases to exist.
RETURN VALUE
returns the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If fails, is set to one of the following values:
Search permission is denied for a component of the path prefix.
Write permission is denied on the directory containing the link to be removed.
The process does not have read/write access permission to the parent
directory.
The entry to be unlinked is the mount point for a mounted file system.
path points outside the process's allocated address space. The reliable detection of this error is implementation dependent.
Too many symbolic links were encountered in translating the path name.
The length of the specified path name exceeds
bytes, or the length of a component of the path name exceeds bytes while is in effect.
The named file does not exist (for example,
path is null or a component of path does not exist).
A component of the path prefix is not a directory.
The directory containing the file to be removed
has the sticky bit set and neither the containing directory nor the file to be removed are owned by the effective user ID.
The named file is a directory and
the effective user ID is not a user with appropriate privileges. Some file systems return this error whenever the named file
is a directory, regardless of the user ID.
The directory entry to be unlinked is part of a read-only file system.
The entry to be unlinked is the last link to a pure procedure
(shared text) file that is being executed.
WARNINGS
If is used on a directory that is not empty (contains files other than and the directory is unlinked, the files become orphans, and the
directory link count is left with an inaccurate value unless they are linked by some other directory.
If is used on a directory that is empty (contains only the files and the directory is unlinked, but the parent directory's link count is
left with an inaccurate value.
In either of the above cases, the file system should be checked using (see fsck(1M)). To avoid these types of problems, use instead (see
rmdir(2)).
SEE ALSO
rm(1), close(2), link(2), open(2), rmdir(2), remove(3C), privileges(5).
STANDARDS CONFORMANCE
unlink(2)