[bug #61327] Support for birth time

2021-11-29 Thread Bernhard Voelker
Follow-up Comment #4, bug #61327 (project findutils):

> On Linux, `find -printf %BT` produces empty string even if the operating
system and filesystem support birth times.

That's true, but GNU/Linux does not provide it via the stat() system call
but via statx() instead.  And that's what I wrote in comment #1: we'll have
to
change find(1) to the statx() system call like ls(1) does to support birth
time on GNU/Linux.

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #61327] Support for birth time

2021-11-28 Thread Kamil Dudka
Follow-up Comment #3, bug #61327 (project findutils):

> This directive produces an empty string if the underlying
> operating system or filesystem does not support birth times.

I do not think the above statement is accurate.  On Linux, `find -printf %BT`
produces empty string even if the operating system and filesystem support
birth times.

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #61327] Support for birth time

2021-11-27 Thread Bernhard Voelker
Update of bug #61327 (project findutils):

  Status:None => Fixed  
 Release:None => 4.8.0  

___

Follow-up Comment #2:

It seems this took a while ...

I pushed the commit to document the %B format directive of
`find -printf` at:

https://git.savannah.gnu.org/cgit/findutils.git/commit/?id=b1b58be2b290ffa600988e747d29bd8759a61052

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #61327] Support for birth time

2021-10-10 Thread Bernhard Voelker
Update of bug #61327 (project findutils):

 Assigned to:None => berny  

___

Follow-up Comment #1:

Well, find(1) does support birth time - both in -newerXY (with 'B' for X or
Y)
and in -printf '%Bk' (with the time format as specified by k like for
%Ak, %Ck and %Tk).  It's in since 2007:

  https://git.sv.gnu.org/cgit/findutils.git/commit/?id=4d3b4e4a285f

The implementation relies on the support of the underlying stat(2)/lstat(2)
functions
and whether the struct stat provides the birth time.  Unfortunately, our main
platform GNU/Linux does not have it.  Instead, we'd have to switch to the
newer statx(2) function like in coreutils' ls(1) or stat(1).

Finally, the documentation for -printf %Bk is missing.
I'll come up with a documentation patch soon.

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/