Displaying 20 results from an estimated 117 matches for "lck".
Did you mean:
lock
2002 Oct 29
1
strange locks
...as Linux doesn't have l_sysid in struct flock.
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
int
main (int argc, char **argv)
{
char c;
int fd;
int debug = 1;
struct flock lck;
lck.l_whence = 0;
lck.l_start = 0L;
lck.l_len = 0L;
if (-1 == (fd = open(argv[1], O_RDONLY)))
{
perror(argv[1]);
exit(1);
}
do {
lck.l_type = F_WRLCK;
if(-1 == fcntl(fd, F_GETL...
2006 Dec 07
1
get errors when doing a tar backup of a windows server with linux smbclient
...c. variables
MSG1="Tarring up $SERVICE Directory: $SUBDIR to: $BACK";
if [ -f $BACK/$BASE$DATE.tar.bz2 ]; then
echo "File exists, command halted: $BACK/$BASE$DATE.tar.bz2"
else
smbclient $SERVICE -N -TqcX
$BACK/$BASE$DATE.tar "$SUBDIR" "example/1.lck" "example/2.lck" "example/3.lck"
"example/4.lck" "example/5.lck" "example/6.lck" "example/7.lck" "example/8.lck"
bzip2 $BACK/$BASE$DATE.tar
fi
We are using samba 3.0.22-r3 from a gentoo install. Tar is 1.15.1-r1....
2013 Nov 29
1
Self heal problem
...0 info
Gathering Heal info on volume gv0 has been successful
Brick todd-storage:/data/gv0
Number of entries: 2
/production-cluster/.vSphere-HA/FDM-DA596AD1-4A6C-4571-A3C8-2114B4FF61EA-5034-b6e1d26-vmware
/production-cluster/.vSphere-HA/FDM-DA596AD1-4A6C-4571-A3C8-2114B4FF61EA-5034-b6e1d26-vmware/.lck-5e711126a297a6bb
Brick rod-storage:/data/gv0
Number of entries: 2
/production-cluster/.vSphere-HA/FDM-DA596AD1-4A6C-4571-A3C8-2114B4FF61EA-5034-b6e1d26-vmware
/production-cluster/.vSphere-HA/FDM-DA596AD1-4A6C-4571-A3C8-2114B4FF61EA-5034-b6e1d26-vmware/.lck-5e711126a297a6bb
Brick ned-storage:/data...
2005 Nov 07
3
R thread safe
...a tread safe library. The main kernel of the OpenMP
parallelization is a C SEXP function that performs the computational routine in
parallel with:
*******************
SEXP example(SEXP list, SEXP expr, SEXP rho)
{
R_len_t i, n = length(list);
SEXP ans, alocal;
omp_lock_t lck;
PROTECT(ans = allocVector(VECSXP, n));
ans = allocVector(VECSXP, n);
omp_init_lock(&lck);
#pragma omp parallel for default(none) private(i, alocal) shared(list,
lck,rho, ans, n, expr)
for(i = 0; i < n; i++) {
omp_set_lock(&lck);
PROTEC...
1998 Apr 27
2
STATUS..LCK
what is the format of this file?
what is the best way to access it w/o the smbstatus program?
IE: with perl
-sv
2001 Feb 08
1
status...lck
when I do an smbstatus iget:
couldn't open status file /var/lock/samba/status/STATUS..LCK
why can't it? why can't I? thanks
2006 May 03
2
Is it safe to delete ferret-write.lck if it is stale?
I''m noticing that ferret-write.lck sometimes stays in my index
directory and throws exceptions whenever someone tries to do a search.
Apparently there are some cases where ferret doesn''t realize that the
file is old and can be deleted. I''m wondering what the best way to
recover from this error is. Am I safe just...
2015 May 11
2
appdynamics php agent prevented by SELinux
...t. Whether or not I have SELinux enabled, I have
apache reporting SELinux problems.
[root at web1:~] #getenforce
Permissive
May 10 20:47:56 web1 python[25735]: SELinux is preventing
/usr/lib/appdynamics-php5/proxy/jre/bin/java from write access on the file
/usr/lib/appdynamics-php5/logs/agent.log.lck.
***** Plugin catchall (100.
confidence) suggests **************************...
May 10 20:47:56 web1 python[25735]: SELinux is preventing
/usr/lib/appdynamics-php5/proxy/jre/bin/java from write access on the file
/usr/lib/appdynamics-php5/logs/agent.log.lck....
2019 Jul 17
2
ALTREP wrappers and factors
...em=0)
Here is what I get without a wrapper:
> fc1 <- structure(y, class="factor", levels=levels(x))
> .Internal(inspect(fc1))
@7fb0cae66408 13 INTSXP g0c2 [OBJ,NAM(2),ATT] (len=3, tl=0) 1,1,2
ATTRIB:
@7fb0ce771868 02 LISTSXP g0c0 []
TAG: @7fb0c80043d0 01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "class" (has value)
@7fb0c9fcbe90 16 STRSXP g0c1 [NAM(7)] (len=1, tl=0)
@7fb0c80841a0 09 CHARSXP g1c1 [MARK,gp=0x61] [ASCII] [cached] "factor"
TAG: @7fb0c8004050 01 SYMSXP g1c0 [MARK,NAM(7),LCK,gp=0x4000] "levels" (has value)
@7fb0d1dd58c8...
2001 Jan 16
0
Couldn't open status file /var/adm/slh/samba/locks/STATUS..LCK
.../tmp
No path in service steve4 - using /tmp
No path in service lp - using /tmp
No path in service lp2 - using /tmp
No path in service color - using /tmp
using configfile = /usr/local/samba/lib/smb.conf
lockdir = /var/adm/slh/samba/locks
Couldn't open status file /var/adm/slh/samba/locks/STATUS..LCK
$
# pwd
/var/adm/slh
# ls -l
total 24
drwxrwxrwx 2 root sys 1024 Jan 16 04:45
CheckMountedFileSystems
drwxrwxrwx 2 root sys 1024 Jan 16 05:01 MonitorLabuxSpace
drwxrwxrwx 3 root sys 3072 Jan 16 02:42 TapeBackups
drwxrwxrwx 2 root sys...
2014 Apr 02
0
special handling of row.names
...ompact form is c(NA_integer_,-n), as in:
> d <- data.frame(x=1:10)
> .Internal(inspect(d))
@104f174a8 19 VECSXP g0c1 [OBJ,NAM(2),ATT] (len=1, tl=0)
@103a7dc60 13 INTSXP g0c4 [] (len=10, tl=0) 1,2,3,4,5,...
ATTRIB:
@104959380 02 LISTSXP g0c0 []
TAG: @100823078 01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "names" (has value)
@104f17748 16 STRSXP g0c1 [NAM(2)] (len=1, tl=0)
@10085c678 09 CHARSXP g1c1 [MARK,gp=0x61] [ASCII] [cached] "x"
TAG: @10082d060 01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "row.names" (has value)
@104f0e898 13 INTSXP g0c1 [] (le...
2005 Nov 07
4
Time-measurement in milliseconds
Hi there
I'm loking for a time-measurement to measure time-differences in
milliseconds.
On my search, I only found the following:
- package "base": Sys.time()
-> only second-accuracy
- package "R.utils": System$currentTimeMillis()
-> returns integer of milliseconds, but accuracy is only whole
seconds too.
At the moment I run every bit of code to measure
2019 Jul 18
0
ALTREP wrappers and factors
...LSXP g0c3 [NAM(1)] (len=3, tl=0) 1,2,3
> > attr(a,"dim")=c(1,3)
> > .Internal(inspect(a))
> @0x000000002384f530 14 REALSXP g0c3 [NAM(1),ATT] (len=3, tl=0) 1,2,3
> ATTRIB:
> @0x0000000023864b58 02 LISTSXP g0c0 []
> TAG: @0x00000000044b1a90 01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "dim"
> (has value)
> @0x000000002384cb48 13 INTSXP g0c1 [NAM(7)] (len=2, tl=0) 1,3
>
*This would cause a duplication, even though the function test does
nothing.*
> > test<-function(x) x1=x
> > a=c(1,2,3)
> > .Internal(inspect(a))
> @0x00...
1999 Aug 07
0
Fw: couldn't open status file /var/lock/samba/status.lck
> smbd not running
> nmbd not running
>
> using samba web interface
>
> trying to configure so win95 workstation can access files on linux box
>
> help
>
> thanks in advance
>
>
> mark
>
2005 Jun 01
0
samba on solaris 2.8 not creating STATUS..LCK file
for the last two nights one of your trucks is parked in a residential area.
the unit number is 342995 tagged in oklahoma tag number 2CZ487. In the
state of maryland it is against the law to park in a residential area. we are
short on parking space in the first place we hope that you can correct this
problem.
thank you,
J. K. Hudson Jr.
2016 May 20
2
identical on closures
...ents are compared only by exact pointer, so this forces return
FALSE.
Snippets from .Internal(inspect(x)) and .Internal(inspect(y)):
@cca008 03 CLOSXP g0c0 [MARK,NAM(2),ATT]
FORMALS:
@604b58 00 NILSXP g0c0 [MARK,NAM(2)]
BODY:
@cc9650 06 LANGSXP g0c0 [MARK,ATT]
@604998 01 SYMSXP g0c0 [MARK,LCK,gp=0x5000] "{" (has value)
ATTRIB:
@cc9570 02 LISTSXP g0c0 [MARK]
TAG: @60dd70 01 SYMSXP g0c0 [MARK,LCK,gp=0x4000] "srcref" (has value)
@15a65d8 19 VECSXP g0c1 [MARK] (len=1, tl=0)
@10f3dd0 13 INTSXP g0c3 [OBJ,MARK,ATT] (len=8, tl=0) 1,15,1,15,15,...
AT...
2016 May 20
2
identical on closures
I'm confused by this:
> identical(function() {}, function() {})
[1] FALSE
Yet, after loading the Matrix package (which redefines det), the
following is checked (in library.checkConflicts):
> identical(get("det", baseenv()), get("det", asNamespace("Matrix")),
ignore.environment=T)
[1] TRUE
I've looked at the code in identical.c and for closures it
2002 Feb 25
3
PATCH: Samba/Win2K renaming bug
...get_nt_error_msg(error), directory,newname));
return error;
} else {
--- ../samba-2.2.3a/source/include/smb.h Sat Feb 2 16:46:40 2002
+++ source/include/smb.h Sun Feb 24 23:25:37 2002
@@ -1426,6 +1426,7 @@
#define BATCH_OPLOCK 2
#define LEVEL_II_OPLOCK 4
+#define NO_OPLOCK_TYPE(lck) ((lck) == NO_OPLOCK)
#define EXCLUSIVE_OPLOCK_TYPE(lck) ((lck) & (EXCLUSIVE_OPLOCK|BATCH_OPLOCK))
#define BATCH_OPLOCK_TYPE(lck) ((lck) & BATCH_OPLOCK)
#define LEVEL_II_OPLOCK_TYPE(lck) ((lck) & LEVEL_II_OPLOCK)
==== end patch ====
--
Don't reinvent the flat tire.
(F...
2015 Feb 11
4
Samba 4.2.0rc4 fails to start up
...0644);
if (lockfile_fd == -1) {
ret = errno;
DEBUG(1, ("%s: open failed: %s\n", __func__, strerror(errno)));
return ret;
}
DEBUG(1, ("lock file name is: %s\n",lockfile_name.buf));
lck = (struct flock) {
.l_type = F_WRLCK,
.l_whence = SEEK_SET
};
ret = fcntl(lockfile_fd, F_SETLK, &lck);
if (ret == -1) {
ret = errno;
DEBUG(1, ("%s: fcntl failed: %s\n", __func__, strerror(ret)));...
2019 Jul 19
2
ALTREP wrappers and factors
...fc1 <- structure(y, class="factor", levels=levels(x))
> > > .Internal(inspect(fc1))
> > @7fb0cae66408 13 INTSXP g0c2 [OBJ,NAM(2),ATT] (len=3, tl=0) 1,1,2
> > ATTRIB:
> > @7fb0ce771868 02 LISTSXP g0c0 []
> > TAG: @7fb0c80043d0 01 SYMSXP g1c0 [MARK,LCK,gp=0x4000] "class" (has
> > value)
> > @7fb0c9fcbe90 16 STRSXP g0c1 [NAM(7)] (len=1, tl=0)
> > @7fb0c80841a0 09 CHARSXP g1c1 [MARK,gp=0x61] [ASCII] [cached]
> > "factor"
> > TAG: @7fb0c8004050 01 SYMSXP g1c0 [MARK,NAM(7),LCK,gp=0x4000]...