git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] "sleep 1" sleeps too little on cygwin

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jan 20, 2006, 15:23 UTC
Message-ID
<81b0412b0601200723k1a271046u9c310d9c9b7d83f0@mail.gmail.com>
In-Reply-To
<20060120033548.GE5090@trixie.casa.cgf.cx>
On 1/20/06, Christopher Faylor <me@cgf.cx> wrote:
Show 8 quoted lines
> On Thu, Jan 19, 2006 at 05:13:17PM -0800, Junio C Hamano wrote:
> >Christopher Faylor <me@cgf.cx> writes:
> >>Inodes are only calculated by hashing the path name when the OS lacks
> >>the support to provide a "real" inode and in that case there is no hard
> >>link support available so it's a non-issue.
> >
> >Does that mean on such filesystems "mv foo bar" would change the i-num
> >of the moved entity?

It is just a rename. It will not change inode by definition (the file is the same, it is the name which was changed). To get inode change you have to create it, like "cp foo bar; rm foo". And now, if a filesystem has (or exports) inodes, would the inode change. If it does not, you really can't say anything about the inode (it can even change, and does in this case, being calculated from pathname).

> I just tried this on Windows XP.  On a FAT32 or a NTFS filesystem the
I have FAT32. It does not support inodes"
    $ : > foo
    $ stat foo |grep node
    Device: 111712fch/286724860d    Inode: 3595119992080318288  Links: 1
    $ mv foo bar
    $ stat bar |grep node
    Device: 111712fch/286724860d    Inode: 3595119974866484701  Links: 1
> inode is unchanged.  On a FAT filesystem, it changes.  I assume that
> means that FAT doesn't support a real file ID.  The only thing I think
> anyone would be using FAT for these days is possibly a boot partition.

It's still faster than NTFS, I use it as a temporary compilation partition, and as NT is painfully slow about filesystems and throughput in general, I keep my sources on the partition as well.

> That's the only reason I have one.  I use to to multi-boot various
> flavors of Windows.  It's the lowest common denominator.
Lowliest.
Previous: Christopher FaylorNext: Christopher Faylor
Message 21 of 22 in “"sleep 1" sleeps too little on cygwin”
  1. "sleep 1" sleeps too little on cygwinAlex Riesen, Jan 17, 2006
  2. Junio C HamanoJan 18, 2006
  3. Alex RiesenJan 18, 2006
  4. Junio C HamanoJan 18, 2006
  5. Christopher FaylorJan 19, 2006
  6. Junio C HamanoJan 18, 2006
  7. Johannes SchindelinJan 18, 2006
  8. Junio C HamanoJan 18, 2006
  9. Alex RiesenJan 18, 2006
  10. Junio C HamanoJan 19, 2006
  11. Christopher FaylorJan 19, 2006
  12. Alex RiesenJan 19, 2006
  13. Junio C HamanoJan 19, 2006
  14. Alex RiesenJan 19, 2006
  15. Junio C HamanoJan 20, 2006
  16. Christopher FaylorJan 19, 2006
  17. Alex RiesenJan 19, 2006
  18. Christopher FaylorJan 19, 2006
  19. Junio C HamanoJan 20, 2006
  20. Christopher FaylorJan 20, 2006
  21. Alex RiesenJan 20, 2006
  22. Christopher FaylorJan 20, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.