Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37907777
en ru br
Репозитории ALT

Группа :: Система/Ядро и оборудование
Пакет: auto-fstrim

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

pax_global_header00006660000000000000000000000064120041362040014502gustar00rootroot0000000000000052 comment=4e41e4250e6016d60bb77c3dda3e0f069a6bc060
auto-fstrim-1.0/000075500000000000000000000000001200413620400136125ustar00rootroot00000000000000auto-fstrim-1.0/.gear/000075500000000000000000000000001200413620400146065ustar00rootroot00000000000000auto-fstrim-1.0/.gear/rules000064400000000000000000000000101200413620400156520ustar00rootroot00000000000000tar: .

auto-fstrim-1.0/Makefile000064400000000000000000000010261200413620400152510ustar00rootroot00000000000000#============================================================================#
# #
#============================================================================#
# (C) Denis Smirnov <mithraen@freesource.info> #
#============================================================================#

all:

install:
install -D -m 755 auto-fstrim ${sbindir}/auto-fstrim
install -D -m 755 auto-fstrim ${sysconfdir}/cron.daily/auto-fstrim

auto-fstrim-1.0/auto-fstrim000075500000000000000000000013041200413620400160100ustar00rootroot00000000000000#!/bin/sh -e
#============================================================================#
# run fstrim for all SSD-based partitions #
#============================================================================#
# (C) Denis Smirnov <mithraen@freesource.info> http://mithraen.ru/ #
#============================================================================#

cat /proc/mounts \
| grep ^/dev/sd \
| perl -npe 's,/dev/(.+?)\d*\s+,$1 ,' \
| while read dev mnt undef;
do
[ -f /sys/block/${dev}/queue/rotational ] || continue
rotational=`cat /sys/block/${dev}/queue/rotational`
[ "x$rotational" = "x0" ] || continue
fstrim "$mnt"
done
auto-fstrim-1.0/catlooking.spec000064400000000000000000000007441200413620400166250ustar00rootroot00000000000000Name: auto-fstrim
Summary: Daily run fstrim for all SSD-based partitions
Version: 1.0
Release: alt1
License: GPLv2+
Group: System/Kernel and hardware
Packager: Denis Smirnov <mithraen@altlinux.ru>
Source: %name-%version.tar

BuildArch: noarch

%description
%summary

%prep
%setup

%install
%makeinstall install

%files
/etc/cron.daily/auto-fstrim
%_sbindir/auto-fstrim

%changelog
* Thu Jul 26 2012 Denis Smirnov <mithraen@altlinux.ru> 1.0-alt1
- initial build for ALT Linux Sisyphus
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin