search for: listdir

Displaying 20 results from an estimated 20 matches for "listdir".

Did you mean: distdir
2011 Apr 20
1
invoking python from R
...help on a python issue in R. I tried to invoke Python from R, but failed. I have set up a system path to call python: "C:\python27" in path file. In addition, I have confirmed python interpreter properly. The code I used is typical for checking, which is as follows: x <- .Python("listdir", "/tmp", .module="posix") The command gives me the following message: > x <- .Python("listdir", "/tmp", .module="posix") Error: could not find function ".Python" Any help would be greatly appreciated. Best, Kihong [[altern...
2019 Nov 07
0
Macintosh sandbox denying access folder
...don't know exactly how to reproduce, so here's everything (?): I'm running macOS Catalina (10.15.1). In the terminal I start a python command interpreter. python # then >>>import os # then I repeatedly list a directory others have been having problems with: >>> os.listdir('/Volumes/smb/dept-office') ['.quota', '.TemporaryItems', 'admin', 'web-data', '.DS_Store'] # take a break, come back >>> os.listdir('/Volumes/smb/dept-office') Traceback (most recent call last): File "<stdin>", li...
2011 Jul 20
0
[PATCH] fix ipv4 static/dhcp/disabled networking changes
..."OVIRT_BOOTIF"] - if not self.CONFIGURED_NIC is None: - log("\nDeleting existing network configuration...\n") - os.system("cp -a /etc/sysconfig/network-scripts/ifcfg-lo /etc/sysconfig/network-scripts/backup.lo") - for file in os.listdir("/etc/sysconfig/network-scripts/"): - if "ifcfg-" in file: - remove_config("/etc/sysconfig/network-scripts/" + file) - os.system("rm -rf /etc/sysconfig/network-scripts/ifcfg-* &>/dev/null") - os.s...
2002 May 17
3
Rsync dies
I?m trying to rsync a 210 GB Filesystem with approx 1.500.000 Files. Rsync always dies after about 29 GB without any error messages. I?m Using rsync version 2.5.5 protocol version 26. Has anyone an idea ? Thank?s Clemens
2010 Oct 25
0
[PATCH node] add network.py script
...os.system("rm -rf /etc/sysconfig/network-scripts/ifcfg-*") + os.system("cp -a /etc/sysconfig/network-scripts/backup.lo /etc/sysconfig/network-scripts/ifcfg-lo") + else: + log("\nAborting...\n") + return + + for file in os.listdir(self.WORKDIR): + os.system("rm -rf %s/%s") % (self.WORKDIR, file) + BRIDGE = "br" + self.CONFIGURED_NIC + IF_FILENAME = self.WORKDIR + "/augtool-" + self.CONFIGURED_NIC + BR_FILENAME = self.WORKDIR + "/augtool-" + BRIDGE +...
2013 Aug 20
2
chmod and chown
Hello guys, does anyone of you have problems with chown and chmod operations taking extremely long time to complete. For example chown on 200 MB folder is taking minutes. The MDS is not loaded at all. All other operations (file read and write) seem to be doing fine. Any help is greatly appreciated. _______________________________________________ Lustre-discuss mailing list
2011 Aug 11
1
[PATCH] fix augtool calls
parse input augtool strings to oper,key,value --- scripts/network.py | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/scripts/network.py b/scripts/network.py index f51ee7c..65b551c 100644 --- a/scripts/network.py +++ b/scripts/network.py @@ -165,11 +165,11 @@ class Network: ntpconf = ntpconf.split("\n") for line
2013 Jul 06
0
"Operation not permitted" error when using "xe vm-start"
...server_helpers.ml:153.10-106 -> server.ml:7936.19-167 -> server_helpers.ml:119.4-7 * xcp-squeezed.log [20130705T23:36:17.934Z|debug|vmhost|0||xenstore-rpc] Request for squeezed/reserve-memory-range/cdc20b6c-f420-8048-7046-d95658e81eaf [20130705T23:36:17.934Z|debug|vmhost|0||xenstore-rpc] listdir /squeezed/rpc/request/reserve-memory-range/cdc20b6c-f420-8048-7046-d95658e81eaf [20130705T23:36:17.934Z|debug|vmhost|0||xenstore-rpc] read /squeezed/rpc/request/reserve-memory-range/cdc20b6c-f420-8048-7046-d95658e81eaf/session_id [20130705T23:36:17.934Z|debug|vmhost|0||xenstore-rpc] read /squeezed/...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...t; 0: + return False + + # optional config embedded in the livecd image + if os.path.exists("/live/config"): + os.system("cp -rv --update /live/config/* /config") + + # bind mount all persisted configs to rootfs + for f in os.listdir("/config"): + if os.path.isfile("/config/%s") % f: + target = string.replace(f, "/config", "") + mounted = os.system("grep -q %s ext3 /proc/mounts") % target + if mounted == 0: +...
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
...+ import fcntl + fcntl.ioctl(self.fd, 0x00002401, 0) + +class TracepointProvider(object): + def __init__(self, event_set): + path = os.path.join(sys_tracing, 'events', event_set) + self.event_set = event_set + fields = [f + for f in os.listdir(path) + if os.path.isdir(os.path.join(path, f))] + extra = [] + for f in fields: + if f in filters: + subfield, values = filters[f] + for name, number in values.iteritems(): + # kvm_exit(MMIO) +...
2008 Jun 05
0
a anaconda test problem
...res during installation process, so anaconda adjustment is needed. When I run command "anaconda --test --method=http://192.168.0.3/linux/CentOS/5-respin/os/x86_64", a error message followed: Traceback (most recent call last): File "/usr/sbin/anaconda", line 702, in ? for i in os.listdir("/mnt/runtime/usr/sbin"): OSError: [Errno 2] There is no such file or directory: '/mnt/runtime/usr/sbin' I mkdir -p /mnt/runtime/usr/sbin,than it works.Followed the steps and configured to kickstart page, clicked "Next" button.There is a message said: 09:59:09 CRITICAL:...
2012 Jul 07
0
Bug#675052: Problem with dynamic memory
...static_min=500MiB, static_max=1GiB, dynamic=800MiB, domid=2 manually create /local/domain/2/control/feature_balloon. Do xe vm-memory-target-set uuid=... target=650MiB squeezed debug: 20120707T03:00:57Z Request for squeezed/balance-memory/3c46cc6a-c1df-deab-1aed-0b0ad939961b 20120707T03:00:57Z listdir /squeezed/rpc/request/balance-memory/3c46cc6a-c1df-deab-1aed-0b0ad939961b [430.86] change_host_free_memory required_mem = 9216 KiB [430.86] total_range = 0 gamma = 1.000000 gamma' = inf [430.86] Total additional memory over dynamic_min = 22547476 KiB; will set gamma = 1.00 (leaving unallocate...
2003 Dec 02
0
[LLVMdev] Re: how to solve following question
...ite.py", line 123, in GetAllTestAndSuiteIds > File "/home/yue/llvm/test/QMTest/llvmdb.py", line 228, in GetSuite > (dirs, files) = self.GetDirsAndFiles (suitepath) > File "/home/yue/llvm/test/QMTest/llvmdb.py", line 160, in GetDirsAndFiles > tests=os.listdir (dirpath) > OSError: [Errno 2] No such file or directory: > '/home/yue/llvm/test/tmp/tr2003-06-29-IncompleteTDPass/ll' > make: [qmtest] Error 1 (ignored) > make: Leaving directory `/home/yue/llvm/test' > [yue at RH9 llvm]$ > > ----------------------------------- &...
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2012 Apr 10
3
[PATCH 0/2] adding tracepoints to vhost
To help in vhost analyzing, the following series adding basic tracepoints to vhost. Operations of both virtqueues and vhost works were traced in current implementation, net code were untouched. A top-like satistics displaying script were introduced to help the troubleshooting. TODO: - net specific tracepoints? --- Jason Wang (2): vhost: basic tracepoints tools: virtio: add a
2008 Sep 27
0
[PATCH 9/9] xen: add SR-IOV support to xm
...') + initial = f.readline().strip() + f.close() + + print "Device: %s, SR-IOV Enabled: %s, TotalVFs: %s, InitialVFs: %s, " \ + "NumVFs: %s" % (dev, enable, total, initial, numvfs) + + for i in range(int(total)): + if i == 0: + ents = os.listdir(path + "%d/" % i) + ents.remove(SYSFS_PCI_IOV_RID) + f = open(path + "%d/" % i + SYSFS_PCI_IOV_RID, ''r'') + output = "VF-%d:[%s]" % (i, f.readline().strip()) + f.close() + for j in ents: + f = open(path...
2010 Oct 26
0
[PATCH node] add install.py
...=STDOUT, stdin=PIPE) + candidate_dev = candidate_dev.stdout.read() + e2label_cmd = "e2label %s RootNew" % candidate_dev + rc = os.system(e2label_cmd) + if rc != 0: + log("root partition not available.") + label_debug = os.listdir("ls -al /dev/disk/by-label") + log(label_debug) + return rc + mount_cmd = "mount %s /liveos" % candidate_dev + os.system(mount_cmd) + os.system("rm -rf /liveos/LiveOS") + os.system("mkdir -p /liveos/LiveOS") + +...
2014 Mar 21
5
[PATCH RFC V2 0/4] Adding tracepoints to vhost/net
Recent debugging on vhost net zerocopy shows the need of tracepoints. So to help in vhost{net} debugging and performance analyzing, the following series adding basic tracepoints to vhost. Operations of both vhost and vhost_net were traced in current implementation. A top-like satistics displaying script were introduced to help the troubleshooting: vhost statistics vhost_virtio_update_used_idx
2014 Mar 21
5
[PATCH RFC V2 0/4] Adding tracepoints to vhost/net
Recent debugging on vhost net zerocopy shows the need of tracepoints. So to help in vhost{net} debugging and performance analyzing, the following series adding basic tracepoints to vhost. Operations of both vhost and vhost_net were traced in current implementation. A top-like satistics displaying script were introduced to help the troubleshooting: vhost statistics vhost_virtio_update_used_idx
2011 Jul 06
7
Xen 4.0 - prerequisites for succesfull live migration?
Hi, I have three Xen hosts running Xen 4.0.2 (OpenSuSE 11.4 based). I also have one ''NFS'' server with an NFS export holding VM images and configuration files. Each host has a dedicated LAN link directly to the NFS server. I have another separated NFS export for VM locking (but I had the same issues before). When I attempt to live migrate a VM, it *looks''*like