Mikhail Gusarov wrote: > Twas brillig at 21:33:06 29.08.2009 UTC+12 when mic...@logix.cz did gyre and > gimble: > > >> I'd like to request a --one-file-system option (aka find's -mount/-xdev) > >> to sync, which would not cross local filesystem boundaries. > > ML> How to do that in a portable way? On Linux it can probably get away > ML> with some matching against /proc/mounts but how about other > ML> systems? Perhaps we can get some hints in rsync or du sources... > > On Unixes it can be detected by looking at os.stat results: if > os.stat(dir).st_dev != os.stat(parent).st_dev, then dir is a mountpoint.
Ah, that makes sense. Thanks :-) Michal -- * http://smtp-cli.logix.cz - the ultimate command line smtp client ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general