home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.11 / text0027.txt < prev    next >
Encoding:
Internet Message Format  |  1987-07-18  |  892 b 

  1. From: daveb@rtech.uucp (Dave Brower)
  2.  
  3. In article <8024@ut-sally.UUCP> jsdy@hadron.uucp (Joseph S. D. Yao) writes:
  4. >In article <8018@ut-sally.UUCP> rbj@icst-cmr.arpa writes:
  5. >>I would also like to see an option not to cross mount points, that is
  6. >>stay on the same partition. This should be added to several major utilities.
  7. >Other than that, this is awfully hard to do unless you are willing
  8. >to break modularity by sticking info about the FS into programs
  9. >which have no need to know about it whatsoever.
  10.  
  11. Hmmm.  Since stat(2) returns
  12.  
  13.           struct stat {
  14.                dev_t  st_dev; /* device inode resides on */
  15.                ino_t  st_ino; /* this inode's number */
  16.         .
  17.          };
  18.  
  19. it should be easy enough to see when you've crossed a device boundary,
  20. and this seems portable under POSIX.  Why do you need additional info
  21. about the FS?
  22.  
  23. -dB
  24.  
  25. Volume-Number: Volume 11, Number 28
  26.  
  27.