search for: dir_nam

Displaying 20 results from an estimated 35 matches for "dir_nam".

Did you mean: dir_name
2020 Aug 24
2
[PATCH v2v] Add ALT support
Patch supplied by Mikhail Gordeev, posting for review. I have compile tested it and checked the code and it looks all fine to me, so ACK from my point of view. I did not actually run it because I don't have an ALT Linux install, but it doesn't seem as if it would affect any other distro. Rich.
2020 Aug 24
0
[PATCH v2v] Add ALT support
...; in + let old_initrd = initrd ^ ".pre-v2v" in + let cmd = sprintf "gzip -cd %s | cpio -imd --quiet -D %s" + old_initrd tmpdir in + ignore (g#sh cmd); + + (* copy module files to new initrd *) + List.iter (fun file -> + let dir_name = Filename.dirname file in + let dir_name = sprintf "%s%s%s" tmpdir kmodpath dir_name in + g#mkdir_p dir_name; + g#cp (sprintf "%s/%s" kmodpath file) dir_name + ) files; + + (* find module dependencies *) + let cmd = [|"/sbin...
2020 Aug 25
2
Re: [PATCH v2v] Add ALT support
...rd ^ ".pre-v2v" in > + let cmd = sprintf "gzip -cd %s | cpio -imd --quiet -D %s" > + old_initrd tmpdir in > + ignore (g#sh cmd); > + > + (* copy module files to new initrd *) > + List.iter (fun file -> > + let dir_name = Filename.dirname file in > + let dir_name = sprintf "%s%s%s" tmpdir kmodpath dir_name in > + g#mkdir_p dir_name; > + g#cp (sprintf "%s/%s" kmodpath file) dir_name > + ) files; So we are creating an initrd with all the modules of...
2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
...on private method. The notification is clearly getting picked up, but I''m just not unraveling the struct properly. Here''s a little sample program you can use to test: require ''win32/changenotify'' include Win32 filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME cn = ChangeNotify.new("C:\\", true, filter) cn.wait(15){ |x| p x } while true Then, just make sure to modify some file within the 15 second wait period. Thanks, Dan
2018 May 03
1
Getting --delete to work, simply
...quot;--include='[T-Z]*'" says that Victoria/Season-1 and all its contents should be copied. But, it is checking again after the "/", thereby excluding the directory. :-( Looking further at INCLUDE/EXCLUDE PATTERN RULES, I found the following: o a trailing "dir_name/***" will match both the directory (as if "dir_name/" had been specified) and everything in the directory (as if "dir_name/**" had been specified). This behavior was added in version 2.6.7. So, changing "--include=...
2008 Sep 01
0
Feature request: preallocation of directories
...l, '=', sizeof(fill)-l-1); fill[sizeof(fill)-1] = 0; if (unlink(fill) < 0) com_err(program_name, errno, "while trying to unlink %s", fill); } done: if (recurse) return iterate_on_dir(name, copy_dir_proc, NULL); return 0; } static int copy_dir_proc(const char * dir_name, struct dirent * de, void * private) { int ret = 0; if (strcmp (de->d_name, ".") && strcmp (de->d_name, "..")) { char *path; path = malloc(strlen (dir_name) + 1 + strlen (de->d_name) + 1); if (!path) { fprintf(stderr, "Couldn't...
2005 Jan 06
0
Some thoughts on win32-changenotify
Hi all, As things stand now, you can do something like this with win32-changenotify: require "win32/changenotify" include Win32 filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME | ChangeNotify::LAST_WRITE cn = ChangeNotify.new("c:\\",false,filter){ puts "Something changed" } cn.wait You can pass a block that''s executed when a change occurs, but you can''t get any details about the change. I would like to alter that behavior so that...
2011 Oct 18
2
patch proposal: omindex library or daemon
...= new Omindex::Session(db_pathname) user threads use different sessions session.index_files(list, options) // list & return value are vector of { char * url, * file_path, * file_ext } perform a transaction for all files in list; create & return skip_list session.index_directory(url, dir_name, options) perform a transaction for all files in a directory tree; return skip_list main() moves to omindex_main.cc process command line, call Omindex::init(), proceed normally SWIG & Node.js bindings Omindex daemon mode: The initial directory pass is optional. Listen on a domain s...
2016 Jan 06
1
wide links and privileges
...b_request *smbreq) [...] if (strncmp(conn_rootdir, resolved_name, rootdir_len) != 0) { DEBUG(2, ("check_reduced_name_with_privilege: Bad access " "attempt: %s is a symlink outside the " "share path\n", dir_name)); ``` We can see that in the first function there is a test on the `allow_widelinks` local variable, whereas this test doesn't exist in the second function. Which seems to mean that in the first case it works, whereas in the second case **it doesn't work**... Anyway, my question is: are...
2016 Jan 06
3
wide links and privileges
...> if (strncmp(conn_rootdir, resolved_name, rootdir_len) != 0) { > DEBUG(2, ("check_reduced_name_with_privilege: Bad access " > "attempt: %s is a symlink outside the " > "share path\n", > dir_name)); > ``` > > We can see that in the first function there is a test on the > `allow_widelinks` local variable, whereas this test doesn't exist in the > second function. > Which seems to mean that in the first case it works, whereas in the > second case **it doesn't wor...
2018 May 03
2
Getting --delete to work, simply
On Thu, May 03, 2018 at 01:09:30AM -0400, Kevin Korb via rsync wrote: > --delete only works when you sync a dir not individual files. So... > rsync -vai --delete --include='g*' --include='G*' --exclude='*' > /share/Public/videos/ /share/Backup-HDD-03 That kinda didn't work: rsync -vai --delete --include='S[A-Z]*' --include='S[a-h]*'
2011 Jan 09
4
IIS Change Notifications
Good afternoon all, I'm a web developer (c#) who also manages a small hosting environment. Roughly, our configuration is: Two IIS7 (Windows Server 2008 Web) servers which share configuration data and site files from a SMB share located on a ubuntu server. The ubuntu server is currently running 3.0.28a which is quite old, but read on. We've been having a problem with the change
2007 Aug 06
0
win32-changenotify and events
...anually set the event''s signaled state to true when it hits WAIT_OBJECT_0. Does that seem appropriate? Here''s a quick sample program I used: # test.rb event = Win32::Event.new(''test'') p event.signaled? # false filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME cn = ChangeNotify.new("C:\\", true, filter, event) cn.wait(10){ |x| p x } p event.signaled? # true if a change happened event.close Regards, Dan
2006 Dec 21
0
Curious win32-changenotify behavior - numbers instead of names
...in cvs) win32-changenotify 0.4.2 I noticed something strange tonight while tinkering with win32-changenotify. Here''s my sample script: # cntest.rb require ''win32/changenotify'' include Win32 path = "C:\\test" filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME cn = ChangeNotify.new(path, true, filter) cn.wait{ |arr| arr.each{ |e| p e } } while true cn.close I then created a file called "test.txt" with gvim, and occasionally did ":w" to save it. The weird thing is that sometimes I get the actual file name, and som...
2008 Nov 13
2
rsync returns unexplained error (code 129)
...ers: rsync --archive \ --hard-links \ --delete \ --rsh="ssh -i $key_file" \ --copy-dest=/var/lib/backuppc \ --compress-level=9 \ --stats \ --human-readable \ --partial-dir=.rsync-partial \ --bwlimit=$bwlimit \ /var/lib/backuppc \ $dest_host:$dir_name Althoug when I try to synchronize using the same command over the internet (port mapping is enabled for SSH) the synchronization process starts, but terminates after about one or half an hour and returns the following error message: "rsync error: unexplained error (code 129) at rsync.c(541...
2009 Jun 08
0
Problems with "samba share" after return from standby/sleep with Ubuntu 8.10
...e date and time I carried out the the file copy. (2) If I open, edit and try to re-save an OpenOffice file, I get a "permissions" error. (3) If I open, edit and re-save a text file, I get a "not a directory error" (4) rsync gives error messages like: failed to set times on "dir_name"; not a directory (20) (5) If my Thunderbird mailboxes are located on the DNS-323, TB keeps downloading the same email from the POP server over and over. The permissions for the folders on the DNS-323 share all seem to be ok. I believe the DNS-323 is running Samba 3.0.24 I think this start...
2005 Apr 21
3
win32-changejournal modification
Hi all, Should we make the same change for win32-changejournal that we made for win32-changenotify (i.e yield an array of structs rather than a single struct)? Any objections? Dan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2015 Dec 22
6
wide links and privileges
Hi, I'm using samba version samba-4.1.6+dfsg included in last ubuntu LTS version. Here is my smb.conf file: [global] # configuration du serveur netbios name = scribe workgroup = dompedago server string = scribe preferred master = yes domain logons = yes security = user ldap passwd sync = yes passdb backend =
2020 May 24
0
Clients send tons of Notiftication requests
...d I see only one notification request, for the folder where I opened the image: [2020/05/24 18:08:01.807305, 3] ../source3/smbd/smb2_notify.c:253(smbd_smb2_notify_send) smbd_smb2_notify_send: notify change called on Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra Whatsapp, filter = FILE_NAME|DIR_NAME|ATTRIBUTES|CREATION|SECURITY|STREAM_SIZE|STREAM_WRITE, recursive = 0 If instead I log in to the same share with luca, which has a read-write access, and try to traverse the same structure to open the same image, the get_entry mask starts almost immediately and keeps repeating (here you see it twi...
2007 Jul 04
10
DO NOT REPLY [Bug 4764] New: Wrong include/exclude descriptions
https://bugzilla.samba.org/show_bug.cgi?id=4764 Summary: Wrong include/exclude descriptions Product: rsync Version: 2.6.8 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: tps@vr-web.de QAContact: