search for: o_directory

Displaying 20 results from an estimated 105 matches for "o_directory".

2011 Feb 19
1
facts are loaded twice
...et on several clients and today i noticed that the facts are loaded twice by the clients. I took strace to get the list of loaded fact file and i found that puppet seems to load the same fact files twice: chdir("/var/lib/puppet/lib/facter") = 0 open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6 info: Loading facts in vserver open("./vserver.rb", O_RDONLY) = 6 open("./vserver.rb", O_RDONLY) = 6 open("./vserver.rb", O_RDONLY) = 6 ... chdir("/var/lib/puppet/lib/facter") = 0 open(".", O_RDONLY|O_N...
2016 Jan 15
0
[klibc:master] Remove open_cloexec()
.../kinit/initrd.c b/usr/kinit/initrd.c index d2efc59..7eece2c 100644 --- a/usr/kinit/initrd.c +++ b/usr/kinit/initrd.c @@ -103,8 +103,8 @@ static int run_linuxrc(int argc, char *argv[], dev_t root_dev) fclose(fp); mkdir("/old", 0700); - root_fd = open_cloexec("/", O_RDONLY | O_DIRECTORY, 0); - old_fd = open_cloexec("/old", O_RDONLY | O_DIRECTORY, 0); + root_fd = open("/", O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); + old_fd = open("/old", O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); if (root_fd < 0 || old_fd < 0) return -errno; diff --git a/usr/klibc/Kbui...
2014 Jan 16
0
Generic UPS driver
...= 0 setuid(65534) = 0 chdir("/var/state/ups") = 0 write(2, " 0.008773\t", 12) = 12 write(2, "Searching for USB device...\n", 28) = 28 openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 getdents(4, /* 11 entries */, 32768) = 264 close(4) = 0 openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 getdents(4, /* 11 entries */, 32768) = 264 getdents(4, /* 0 entries */, 32768) = 0 close(4)...
2013 Apr 04
1
can't find UPS on openwrt/arm
...d according to strace, the files in /dev get opened, it just seems that the device is not even considered. Is this problem of NUT or maybe libusb? write(2, "upsdrv_initups...", 17upsdrv_initups...) = 17 write(2, "\n", 1 open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 open("/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 open("/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 7 open("/sys/bus/usb/devices/1-1/busnum", O_RDONLY) = 8 read(8, "1\n", 4096)...
2007 Jul 16
1
Tripp Lite OmniSV1500XL
...0 rt_sigaction(SIGINT, {0x408680, [], SA_RESTORER, 0x326ba30210}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {0x408680, [], SA_RESTORER, 0x326ba30210}, NULL, 8) = 0 rt_sigaction(SIGHUP, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|0755, st_size=180, ...}) = 0 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getdents(4, /* 9 entries */, 4096) = 216 close(4) = 0 open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|0755, st_si...
2014 Jan 12
3
Generic UPS driver
On Jan 12, 2014, at 11:07 AM, Ariel Wainer wrote: > On 11/01/14 15:27, Charles Lepple wrote: >> On Jan 10, 2014, at 4:46 PM, Ariel Wainer wrote: >> >>> On 10/01/14 01:53, Charles Lepple wrote: >>>> I am curious about why the Interrupt Out packet is sent by the Windows software if it isn't to turn off the UPS. Is it possible to do some more testing with
2015 Nov 13
4
[PATCH 1/4] extlinux: simplification
...path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); - snprintf(c32file, PATH_MAX + 1, "%s%sldlinux.c32", path, - path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); dirfd = open(path, O_RDONLY | O_DIRECTORY); if (dirfd < 0) { @@ -767,21 +754,8 @@ static int xfs_install_file(const char *path, int devfd, struct stat *rst) dirfd = -1; fd = -1; - fd = open(c32file, O_WRONLY | O_TRUNC | O_CREAT | O_SYNC, - S_IRUSR | S_IRGRP | S_IROTH); - if (fd < 0) { - perror(c32file); -...
2009 Jul 31
1
nut and megatec_usb
...ROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0be9229000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0be9228000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) ... open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getdents(4, /* 4 entries */, 4096) = 96 close(4) = 0 open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|0755, st_size...
2007 Feb 16
13
Problem with Share Size
Hi all, I have a problem with samba : I can create files, but can't create directories. The server has many shares, on seperated disks. We consider two of them : one 2Tb share and one share with more than 7Tb. Samba configuration is good, and works on many other servers, and on this one except for the large share. Permissions are correctly setted up too. I can read/write files and
2018 Feb 02
4
Does samba support fsync() a directory?
...ntOS 7. When I run such program in the mounted directory: ``` #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <fcntl.h> #include <string.h> int main() { printf("open aaa\n"); int fd = open("aaa", O_RDONLY | O_DIRECTORY, 0); if (fd < 0) { perror("open aaa"); } printf("sync aaa\n"); if(fsync(fd)) { perror("sync aaa"); } printf("OK\n"); return 0; } ``` I get such error: `sync aaa: Invalid argument` Is this expected for samba? Tha...
2005 Jul 12
1
problem mounting ocfs2: heartbeat
When attempting to mount the OCFS2 file system I'm getting the following error message: ocfs2_hb_ctl: Internal logic failure while starting heartbeat mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted" I followed the steps given in the users_guide: modprobe ocfs2_dlmfs mount -t configfs none /config mount -t ocfs2_dlmfs none /dlm o2cb_ctl
2013 Mar 28
1
Makefile race condition with parallel make
When attempting to build syslinux in parallel (make -j5), I encountered the following error at the end: rm -f liblpxelinux.a ar cq liblpxelinux.a rawcon.o ./fs/pxe/dhcp_option.o ./fs/pxe/pxe.o ./fs/pxe/tftp.o ./fs/pxe/urlparse.o ./lwip/src/netif/ethernetif.o ./lwip/src/netif/etharp.o ./lwip/src/netif/slipif.o ./lwip/src/netif/ppp/md5.o ./lwip/src/netif/ppp/randm.o ./lwip/src/netif/ppp/chpms.o
2016 Apr 28
1
poor samba performance with many smaller files
I removed the O_CREAT|O_EXCL checks and added check to exclude O_DIRECTORY, but it is not working, opening of files fails and I don't know why. I can see in strace logs that openat syscall in vfs_aio_pthread was successful, but it still fails and this messages are logged: [2016/04/28 13:28:59.691782, 5, pid=5623, effective(32697, 10513), real(32697, 0)] ../source3/s...
2007 Nov 20
2
squat plugin
Hello Timo, I have installed 1.1 beta 8 with fts-squat enabled. I have added the plugin section in dovecot.conf. How can I actually make use of the full text index? Regards, - Joe
2015 Nov 18
1
[PATCH 4/4] extlinux: simplification by removing one label
...ons(-) > > diff --git a/extlinux/main.c b/extlinux/main.c > index 43c1a31..8b97a71 100644 > --- a/extlinux/main.c > +++ b/extlinux/main.c > @@ -735,28 +735,22 @@ static int xfs_install_file(const char *path, int > devfd, struct stat *rst) > dirfd = open(path, O_RDONLY | O_DIRECTORY); > if (dirfd < 0) { > perror(path); > - goto bail; > + return 1; > } > > - if (ext_install_ldlinux_sys(devfd, path, rst)) > - goto bail; > + if (ext_install_ldlinux_sys(devfd, path, rst)) { > + close(dirfd); > + return 1; > + } > >...
2018 Feb 02
2
Does samba support fsync() a directory?
...= 0 munmap(0x7f27a256b000, 73077) = 0 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f27a257c000 write(1, "open aaa\n", 9open aaa ) = 9 open("aaa", O_RDONLY|O_DIRECTORY) = 3 write(1, "sync aaa\n", 9sync aaa ) = 9 fsync(3) = -1 EINVAL (Invalid argument) dup(2) = 4 fcntl(4, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) brk(0)...
2020 Jul 06
2
Permission denied for home, even when it's 777
...d35218110, 256) = -1 EACCES (Permission denied) getxattr(".", "user.DOSATTRIB", 0x7ffd35218110, 256) = -1 EACCES (Permission denied) open(".", O_RDONLY) = -1 EACCES (Permission denied) openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 EACCES (Permission denied) I am very puzzled about which "." directory samba is failing to access. Home shares worked for years with the configuration below, until I migrated the samba server from one CentOS 7 server to another. I expect that home shares have never worked on...
2004 Nov 16
1
Samba 3.0.4 and DOS 6.2.2 - MSDOS Copy problem
...uot;, 4) = 4 read(22, "\377SMB\201\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0E"..., 66) = 66 gettimeofday({1100611783, 898698}, NULL) = 0 stat("3277/TEST/DEFAULT.PLP", {st_mode=S_IFREG|0764, st_size=600, ...}) = 0 open("3277/TEST", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 27 fstat(27, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 fcntl(27, F_SETFD, FD_CLOEXEC) = 0 time([1100611783]) = 1100611783 rt_sigaction(SIGPIPE, {0x2a96c00940, [], 0x4000000}, {SIG_DFL}, 8) = 0 sendto(18, "<13>Nov 16 06:29:43 smbd_audit[2"..., 58...
2004 Nov 26
0
Dovecot 1.0-test52 and LDAP authentication
...t_sigaction(SIGALRM, {SIG_IGN}, <unfinished ...> [pid 16546] --- SIGPIPE (Broken pipe) @ 0 (0) --- [pid 16545] <... rt_sigaction resumed> {SIG_IGN}, 8) = 0 [pid 16546] exit_group(82) = ? Process 16546 detached [pid 16545] open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 6 [pid 16545] fstat64(6, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 [pid 16545] fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 [pid 16545] getdents64(6, /* 2 entries */, 4096) = 48 [pid 16545] getdents64(6, /* 0 entries */, 4096) = 0 [pid 16545] close(6) = 0 [pid 16545] getsockname(0...
2003 Nov 02
2
dies on start-up: Auth process
...ot;/var/run/dovecot/", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 open(".", O_RDONLY|O_LARGEFILE) = 3 open("/var/run/dovecot//login", O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = 4 fchdir(4) = 0 open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory) open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 6 fstat64(6, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 brk(0) = 0x8061000 brk(0x8062000) = 0...