Bug#1103244: partman-xfs: Add support for "prjquota" option for XFS

2025-04-15 Thread Pascal Hambourg

Control: tags -1 patch

MR created:

Are other options worth adding too ?

Note:
"prjquota" does not have a description yet. Previously partman 
misbehaved on mount options with missing descriptions (partman-btrfs has 
some), but this was fixed recently too.
Adding descriptions involves translation effort. Also should all 
descriptions go into partman-basicfilesystems as of now or should 
filesystems-specific option descriptions go into related partman-* 
packages ?




Processed: Re: Bug#1103244: partman-xfs: Add support for "prjquota" option for XFS

2025-04-15 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 patch
Bug #1103244 [src:partman-xfs] partman-xfs: Add support for "prjquota" option 
for XFS
Added tag(s) patch.

-- 
1103244: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103244
Debian Bug Tracking System
Contact [email protected] with problems



Bug#1103244: partman-xfs: Add support for "prjquota" option for XFS

2025-04-15 Thread Alexis Deberg
> Adding support for filesystem mount options is trivial. Support for 
> "discard" was added recently for XFS. I guess support for "prjquota" 
> could be added too.

Exactly why I'm reporting for prjquota today

> Does using "prjquota" require extra mkfs.xfs parameters ?

Not that I'm aware of (happy to be corrected though), as far as I know mount 
option is all is needed, see below for e.g:

# mkdir -p /data/vol
# dd if=/dev/zero of=/data/vol/xfsprjquota bs=1 count=0 seek=1G
# mkfs.xfs /data/vol/xfsprjquota >/dev/null 2>&1
# mount -o defaults,prjquota -t xfs /data/vol/xfsprjquota /mnt
# xfs_quota -c 'print' /mnt
Filesystem  Pathname
/mnt/dev/loop1 (pquota)




Bug#1103244: partman-xfs: Add support for "prjquota" option for XFS

2025-04-15 Thread Cyril Brulebois
Pascal Hambourg  (2025-04-15):
> Adding support for filesystem mount options is trivial. Support for
> "discard" was added recently for XFS. I guess support for "prjquota"
> could be added too.

Ah, right, I had missed the recent-ish merge.

> > Right, it looks like there isn't much flexibility at the moment:
> > 
> >  # Ensure label is quoted correctly
> >  log-output -t partman --pass-stdout \
> >  mkfs.xfs ${label:+-L "$label"} -f \
> >   $device >/dev/null || code=$?
> 
> Does using "prjquota" require extra mkfs.xfs parameters ?

So I suppose I was looking in the wrong place, and seeing how there are
a few *quota options already, I'd hope adjusting mountoptions/xfs would
be sufficient.

Sorry for the confusion.


Cheers,
-- 
Cyril Brulebois ([email protected])
D-I release manager -- Release team member -- Freelance Consultant


signature.asc
Description: PGP signature


Bug#1103244: partman-xfs: Add support for "prjquota" option for XFS

2025-04-15 Thread Pascal Hambourg

On 15/04/2025 at 14:07, Cyril Brulebois wrote:


Alexis Deberg  (2025-04-15):

We tried to leverage XFS project quotas ("prjquota") as part of our
preseed install but it appears this option isn't available via
debian-installer/partman-xfs which would more convenient.


Adding support for filesystem mount options is trivial. Support for 
"discard" was added recently for XFS. I guess support for "prjquota" 
could be added too.



Right, it looks like there isn't much flexibility at the moment:

 # Ensure label is quoted correctly
 log-output -t partman --pass-stdout \
 mkfs.xfs ${label:+-L "$label"} -f \
  $device >/dev/null || code=$?


Does using "prjquota" require extra mkfs.xfs parameters ?



Bug#1103244: partman-xfs: Add support for "prjquota" option for XFS

2025-04-15 Thread Cyril Brulebois
Hi Alexis,

Alexis Deberg  (2025-04-15):
> We tried to leverage XFS project quotas ("prjquota") as part of our
> preseed install but it appears this option isn't available via
> debian-installer/partman-xfs which would more convenient.

Right, it looks like there isn't much flexibility at the moment:

# Ensure label is quoted correctly
log-output -t partman --pass-stdout \
mkfs.xfs ${label:+-L "$label"} -f \
 $device >/dev/null || code=$?


Cheers,
-- 
Cyril Brulebois ([email protected])
D-I release manager -- Release team member -- Freelance Consultant


signature.asc
Description: PGP signature


Bug#1103244: partman-xfs: Add support for "prjquota" option for XFS

2025-04-15 Thread Alexis Deberg
Source: partman-xfs
Version: 68
Severity: wishlist
X-Debbugs-Cc: [email protected]

Hello,

We tried to leverage XFS project quotas ("prjquota") as part of our preseed 
install but it appears this option isn't available via 
debian-installer/partman-xfs which would more convenient.

Regards,
Alexis